Function at 0x5200db
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x706034]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
lea edi, [esp + 0x2c]
mov dword [esp + 0x48], ebx
movsd dword es:[edi], dword [esi]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0050ca5d
lea esi, [ebx + 0x158]
lea edi, [esp + 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2c]
add eax, dword [ebx + 0x564]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
add esi, dword [ebx + 0x560]
sub edi, dword [ebx + 0x568]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
sub eax, dword [ebx + 0x56c]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x6c0]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], edi
cmp byte [eax + 0x6c4], 0
je 0x520185
mov ecx, dword [ebx + 0x584]
test ecx, ecx
jne 0x5201a1
mov ecx, dword [ebx + 0x584]
test ecx, ecx
je 0x5201ac
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x5201ac
mov ecx, dword [ebx + 0x584]
mov eax, dword [ecx]
call dword [eax + 0x7c]
sub edi, eax
mov dword [esp + 0x30], edi
mov ecx, dword [ebx + 0x588]
test ecx, ecx
je 0x5201dc
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x5201dc
mov ecx, dword [ebx + 0x588]
mov eax, dword [ecx]
call dword [eax + 0x84]
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov dword [esp + 0x34], ecx
jmp 0x5201e0
mov ecx, dword [esp + 0x34]
sub edi, esi
mov esi, edi
mov dword [esp + 0x40], edi
mov edi, ecx
mov dword [esp + 0x3c], esi
sub edi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x588]
mov dword [esp + 0x18], edi
test ecx, ecx
je 0x52021c
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x52021c
mov eax, dword [ebx + 0x588]
add esi, dword [eax + 0x554]
mov dword [esp + 0x3c], esi
xor eax, eax
mov edx, eax
mov esi, eax
mov ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
cmp dword [ebx + 0x558], eax
jle 0x520387
mov eax, dword [ebx + 0x554]
mov edi, dword [eax + ecx*4]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0xf4]
test al, al
je 0x52036a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x120]
test al, al
jne 0x52036a
push dword [esp + 0x18]
mov eax, dword [edi]
lea ecx, [esp + 0x68]
push dword [esp + 0x40]
push ecx
mov ecx, edi
call dword [eax + 0x140]
cmp dword [esp + 0x68], 0
jne 0x520295
inc dword [esp + 0x38]
jmp 0x5202d1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x9c]
cmp dword [esp + 0x68], eax
jge 0x5202b3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x9c]
mov dword [esp + 0x68], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xa4]
cmp dword [esp + 0x68], eax
jle 0x5202d1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xa4]
mov dword [esp + 0x68], eax
mov eax, dword [edi]
lea ecx, [esp + 0x54]
push ecx
mov ecx, edi
call dword [eax + 0x6c]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
lea esi, [eax + 0xc]
mov eax, dword [edi]
call dword [eax + 0x6c]
mov ecx, dword [esi]
add ecx, dword [esp + 0x68]
add ecx, dword [eax + 4]
add dword [esp + 0xc], ecx
lea ecx, [esp + 0x7c]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x6c]
xor eax, eax
mov ecx, edi
cmp dword [esp + 0x64], eax
cmovg eax, dword [esp + 0x64]
mov dword [esp + 0x64], eax
mov eax, dword [edi]
call dword [eax + 0x8c]
cmp dword [esp + 0x64], eax
jge 0x520332
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x8c]
mov dword [esp + 0x64], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x94]
mov ecx, dword [esp + 0x64]
cmp ecx, eax
jle 0x520354
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x94]
mov ecx, eax
mov dword [esp + 0x64], ecx
cmp dword [esp + 0x1c], ecx
mov esi, dword [esp + 0x24]
cmovg ecx, dword [esp + 0x1c]
inc esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, dword [ebx + 0x558]
jl 0x520244
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov eax, dword [ebx + 0x570]
lea ecx, [esi - 1]
imul eax, ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx + 0x6c0]
add edx, eax
mov dword [esp + 0xc], edx
test ecx, ecx
je 0x52046e
add ecx, 0x6c0
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov esi, eax
mov dword [esp + 0x48], esi
test esi, esi
je 0x52046a
lea ecx, [esi + 0x550]
mov edx, dword [ecx]
call dword [edx + 0xc]
test eax, eax
jle 0x52046a
mov eax, dword [esi]
lea ecx, [esp + 0x64]
push edi
push dword [esp + 0x44]
push ecx
mov ecx, esi
call dword [eax + 0x140]
cmp dword [eax], 0
jge 0x5203f7
and dword [esp + 0x1c], 0
jmp 0x520411
mov eax, dword [esi]
lea ecx, [esp + 0x7c]
push edi
push dword [esp + 0x44]
push ecx
mov ecx, esi
call dword [eax + 0x140]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov ecx, dword [ebx + 0x588]
test ecx, ecx
je 0x52046a
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x52046a
mov eax, dword [ebx + 0x588]
mov ecx, esi
mov ebx, dword [eax + 0x558]
mov eax, dword [esi]
call dword [eax + 0x50]
mov esi, eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
lea edi, [esp + 0x54]
push 1
sub esp, 0x10
sub eax, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x68], eax
lea esi, [esp + 0x68]
mov eax, dword [ecx]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x54]
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
xor edi, edi
and dword [esp + 0x48], edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x520494
mov eax, dword [esp + 0x18]
sub eax, edx
cdq
idiv ecx
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov dword [esp + 0x48], eax
mov ecx, dword [ebx + 0x584]
test ecx, ecx
je 0x5204be
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x5204be
mov eax, dword [ebx + 0x584]
mov ecx, dword [esp + 0x14]
sub ecx, dword [eax + 0x558]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 0x588]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x20], esi
test ecx, ecx
je 0x5204ee
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x5204ee
mov eax, dword [ebx + 0x588]
mov edx, esi
sub edx, dword [eax + 0x558]
mov dword [esp + 0x20], edx
and dword [esp + 0x44], edi
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp dword [ebx + 0x558], ecx
jle 0x520550
mov eax, dword [ebx + 0x554]
mov edi, dword [eax + ecx*4]
mov ecx, edi
mov dword [esp + 0x7c], edi
mov eax, dword [edi]
call dword [eax + 0xf4]
test al, al
je 0x520537
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x120]
test al, al
je 0x5205a4
mov eax, dword [ebx]
mov ecx, ebx
push dword [esp + 0x24]
call dword [eax + 0x1f8]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, dword [ebx + 0x558]
jl 0x520500
mov esi, dword [esp + 0x4c]
mov eax, dword [ebx + 0x570]
imul eax, dword [esp + 0x50]
mov ecx, dword [ebx + 0x588]
add edi, eax
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x5207e8
mov eax, dword [ecx]
call dword [eax + 0xf4]
cmp edi, dword [esp + 0x40]
jle 0x5207a9
mov ecx, dword [ebx + 0x588]
test al, al
je 0x52076c
sub esi, dword [esp + 0x30]
add esi, edi
push esi
call fcn.00540418
jmp 0x5207e8
mov eax, dword [edi]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call dword [eax + 0x6c]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x64]
sub esi, dword [esp + 0x70]
mov eax, dword [edi]
push esi
push dword [esp + 0x40]
mov dword [esp + 0x20], esi
push ecx
mov ecx, edi
call dword [eax + 0x140]
cmp dword [esp + 0x68], 0
jne 0x520640
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
inc ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x68], eax
cmp ecx, dword [esp + 0x38]
jne 0x520602
mov eax, esi
sub eax, dword [esp + 0x78]
sub eax, dword [esp + 0xc]
push 0
pop ecx
cmovs eax, ecx
mov dword [esp + 0x68], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x9c]
cmp dword [esp + 0x68], eax
jge 0x520620
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x9c]
mov dword [esp + 0x68], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xa4]
cmp dword [esp + 0x68], eax
jle 0x520684
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xa4]
mov dword [esp + 0x68], eax
jmp 0x520684
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x9c]
cmp dword [esp + 0x68], eax
jge 0x52065e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x9c]
mov dword [esp + 0x68], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xa4]
mov ecx, dword [esp + 0x68]
cmp ecx, eax
jle 0x520680
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xa4]
mov ecx, eax
mov dword [esp + 0x68], ecx
sub dword [esp + 0xc], ecx
mov eax, dword [esp + 0x3c]
mov ecx, edi
sub eax, dword [esp + 0x74]
sub eax, dword [esp + 0x6c]
cmp dword [esp + 0x1c], eax
cmovg eax, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
mov eax, dword [edi]
call dword [eax + 0x8c]
cmp dword [esp + 0x64], eax
jge 0x5206bb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x8c]
mov dword [esp + 0x64], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x94]
cmp dword [esp + 0x64], eax
jle 0x5206db
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x94]
mov dword [esp + 0x64], eax
jmp 0x5206df
mov eax, dword [esp + 0x64]
add eax, dword [esp + 0x6c]
lea esi, [esp + 0x54]
add eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
add ecx, dword [esp + 0x6c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x68]
add eax, dword [esp + 0x70]
add eax, dword [esp + 0x14]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x70]
mov dword [esp + 0x60], eax
mov eax, dword [edi]
push 1
sub esp, 0x10
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x90]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x54]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x68]
mov esi, dword [ebx + 0x570]
mov edi, dword [esp + 0x10]
lea eax, [edx + ecx]
add eax, dword [esp + 0x70]
add eax, esi
add dword [esp + 0x14], eax
lea eax, [edx + ecx]
add eax, dword [esp + 0x70]
add edi, eax
lea eax, [edx + ecx]
add eax, esi
mov dword [esp + 0x10], edi
sub dword [esp + 0x18], eax
jmp 0x52053b
mov eax, dword [ecx]
push 1
call dword [eax + 0xf8]
sub esi, dword [esp + 0x30]
mov ecx, dword [ebx + 0x588]
add esi, edi
push esi
call fcn.00540418
mov ecx, dword [ebx + 0x588]
push 0
call fcn.0054045f
mov ecx, dword [ebx + 0x588]
mov eax, dword [ecx]
call dword [eax + 0x84]
sub dword [esp + 0x34], eax
jmp 0x5207e8
test al, al
je 0x5207e8
mov ecx, dword [ebx + 0x588]
xor esi, esi
push esi
mov eax, dword [ecx]
call dword [eax + 0xf8]
mov ecx, dword [ebx + 0x588]
push esi
call fcn.00540418
mov ecx, dword [ebx + 0x588]
push esi
call fcn.0054045f
mov ecx, dword [ebx + 0x588]
mov eax, dword [ecx]
call dword [eax + 0x84]
add dword [esp + 0x34], eax
mov ecx, dword [ebx + 0x6c0]
add ecx, 0x6c0
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jne 0x52084a
mov eax, dword [ebx + 0x558]
mov dword [esp + 0x50], eax
test eax, eax
jle 0x52084a
mov ecx, dword [ebx + 0x554]
mov esi, dword [ecx]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x7c]
mov ecx, eax
test ecx, ecx
jle 0x52084a
mov eax, dword [esp + 0x40]
cdq
idiv ecx
mov dword [esp + 0x7c], eax
test eax, eax
jle 0x52084a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x84]
mov ecx, eax
mov eax, dword [esp + 0x50]
dec eax
cdq
idiv dword [esp + 0x7c]
inc eax
imul ecx, eax
jmp 0x52084e
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
lea esi, [esp + 0x28]
push ecx
push edi
sub esp, 0x10
mov ecx, ebx
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1fc]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006221ee
mov esp, ebp
pop ebp
ret 0x14