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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1e4
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x52d505
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x52d505
lea ecx, [esp + 0xc]
call fcn.0064dc20
lea ecx, [esp + 0x118]
call fcn.0064dc20
lea ecx, [esp + 0x148]
call fcn.0064dc20
mov ecx, esi
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
call fcn.00500c50
test eax, eax
mov dword [esp + 0x30], eax
je 0x52d505
mov ecx, ebx
call fcn.004da3c0
mov edi, eax
cmp edi, 2
mov dword [esp + 0x34], edi
jl 0x52d505
mov ecx, dword [esp + 0x30]
call fcn.004f2990
cmp eax, 2
mov dword [esp + 0x28], eax
jl 0x52d505
mov eax, dword [ebx]
lea ecx, [esp + 0xe0]
push ecx
mov ecx, ebx
call dword [eax + 0xf0]
push eax
lea ecx, [esp + 0x104]
call fcn.006578b0
mov edx, dword [ebx]
lea eax, [esp + 0xe0]
push eax
mov ecx, ebx
call dword [edx + 0xf4]
push eax
lea ecx, [esp + 0x94]
call fcn.006578b0
mov edx, dword [esi]
lea eax, [esp + 0xe0]
push eax
mov ecx, esi
call dword [edx + 0xf0]
push eax
lea ecx, [esp + 0xac]
call fcn.006578b0
mov edx, dword [esi]
lea eax, [esp + 0xe0]
push eax
mov ecx, esi
call dword [edx + 0xf4]
push eax
lea ecx, [esp + 0xcc]
call fcn.006578b0
xor esi, esi
test edi, edi
mov dword [esp + 0x24], esi
jl 0x52d4f8
jmp 0x52cdfd
mov edi, dword [esp + 0x34]
test esi, esi
jne 0x52ce64
lea ecx, [esp + 0x1c0]
push esi
push ecx
mov ecx, ebx
call fcn.005309b0
push eax
lea ecx, [esp + 0x10]
call fcn.004bd820
fld qword [esp + 0x100]
fmul qword [0x69dbe0]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x60], edx
fsubr qword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x64], eax
fstp qword [esp + 0x58]
fld qword [esp + 0x14]
fld qword [esp + 0x108]
fmul qword [0x69dbe0]
fsubp st(1)
fstp qword [esp + 0x48]
jmp 0x52cf70
cmp esi, edi
jne 0x52cef5
dec edi
lea eax, [esp + 0x190]
push edi
push eax
mov ecx, ebx
call fcn.005309b0
fld qword [esp + 0x90]
fmul qword [0x69dbe0]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
fadd qword [esp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
fstp qword [esp + 0x60]
fld qword [esp + 0x98]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], ecx
fmul qword [0x69dbe0]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
fadd qword [esp + 0x14]
fstp qword [esp + 0x70]
jmp 0x52cf78
test esi, esi
jle 0x52cf78
cmp esi, edi
jge 0x52cf78
lea ecx, [esi - 1]
lea edx, [esp + 0x130]
push ecx
push edx
mov ecx, ebx
call fcn.005309b0
lea eax, [esp + 0xe0]
push esi
push eax
mov ecx, ebx
call fcn.005309b0
mov ecx, dword [esp + 0x130]
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x138]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x13c]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0xec]
mov dword [esp + 0x64], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov eax, dword [esp + 0x28]
xor edi, edi
test eax, eax
mov dword [esp + 0x2c], edi
jl 0x52d4e7
jmp 0x52cf90
mov eax, dword [esp + 0x28]
test edi, edi
jne 0x52d00b
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x160]
push edi
push eax
call fcn.004f2a30
fld qword [eax]
fst qword [esp + 0xc]
fld qword [esp + 0xa8]
fmul qword [0x69dbe0]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
fsubr st(1)
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
fstp qword [esp + 0x50]
fld qword [esp + 0x14]
fld qword [esp + 0xb0]
fmul qword [0x69dbe0]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], edx
fsubp st(1)
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
fstp qword [esp + 0x68]
fstp qword [esp + 0x78]
jmp 0x52d16d
cmp edi, eax
jne 0x52d09e
mov ecx, dword [esp + 0x30]
dec eax
lea edx, [esp + 0x178]
push eax
push edx
call fcn.004f2a30
fld qword [esp + 0xc8]
fmul qword [0x69dbe0]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
fadd qword [esp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
fstp qword [esp + 0x78]
fld qword [esp + 0xd0]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
fmul qword [0x69dbe0]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
fadd qword [esp + 0x14]
fstp qword [esp + 0x40]
jmp 0x52d16d
test edi, edi
jle 0x52d16d
cmp edi, eax
jge 0x52d16d
mov esi, dword [esp + 0x30]
lea ecx, [edi - 1]
lea edx, [esp + 0x1a8]
push ecx
push edx
mov ecx, esi
call fcn.004f2a30
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
lea eax, [esp + 0x1d8]
mov dword [esp + 0x1c], ecx
push edi
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.004f2a30
fld qword [eax]
mov esi, dword [esp + 0x24]
fst qword [esp + 0x118]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x128], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x12c], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x120]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x124]
mov dword [esp + 0x6c], eax
fstp qword [esp + 0x78]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x44]
lea eax, [esp + 0xf8]
push 1
lea ecx, [esp + 0xc4]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x98]
push eax
push ecx
push edx
call fcn.004648a0
add esp, 0x4c
cmp eax, 1
jne 0x52d4d6
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0xc4]
push 0
push 0
push eax
mov eax, dword [esp + 0xcc]
push ecx
push edx
push eax
lea ecx, [esp + 0x160]
call fcn.0064dd00
sub esp, 0x18
lea edx, [esp + 0x160]
mov ecx, esp
push edx
call fcn.0064dc70
mov ecx, dword [ebp + 0x10]
call fcn.00472bf0
test esi, esi
jne 0x52d279
mov ebx, dword [ebp + 0x14]
push 0xffffffffffffffff
mov ecx, ebx
mov esi, dword [ebx + 8]
lea eax, [esi + 1]
push eax
call fcn.00473440
mov ecx, dword [ebx + 4]
mov dword [ecx + esi*8], 0
mov dword [ecx + esi*8 + 4], 0xc0000000
jmp 0x52d2e9
cmp esi, dword [esp + 0x34]
jne 0x52d2a6
mov ebx, dword [ebp + 0x14]
push 0xffffffffffffffff
mov ecx, ebx
mov esi, dword [ebx + 8]
lea edx, [esi + 1]
push edx
call fcn.00473440
mov eax, dword [ebx + 4]
mov dword [eax + esi*8], 0
mov dword [eax + esi*8 + 4], 0xbff00000
jmp 0x52d2e9
mov esi, dword [ebx]
sub esp, 0x18
lea edx, [esp + 0x160]
mov ecx, esp
push edx
call fcn.0064dc70
mov ecx, ebx
call dword [esi + 0xa0]
mov esi, dword [ebp + 0x14]
push 0xffffffffffffffff
fstp qword [esp + 0x84]
mov ebx, dword [esi + 8]
mov ecx, esi
lea eax, [ebx + 1]
push eax
call fcn.00473440
mov ecx, dword [esi + 4]
fld qword [esp + 0x80]
fstp qword [ecx + ebx*8]
test edi, edi
jne 0x52d313
mov ebx, dword [ebp + 0x18]
push 0xffffffffffffffff
mov ecx, ebx
mov esi, dword [ebx + 8]
lea edx, [esi + 1]
push edx
call fcn.00473440
mov eax, dword [ebx + 4]
mov dword [eax + esi*8], edi
mov dword [eax + esi*8 + 4], 0xc0000000
jmp 0x52d4cf
cmp edi, dword [esp + 0x28]
jne 0x52d343
mov ebx, dword [ebp + 0x18]
push 0xffffffffffffffff
mov esi, dword [ebx + 8]
lea ecx, [esi + 1]
push ecx
mov ecx, ebx
call fcn.00473440
mov edx, dword [ebx + 4]
mov dword [edx + esi*8], 0
mov dword [edx + esi*8 + 4], 0xbff00000
jmp 0x52d4cf
mov esi, dword [ebp + 0xc]
sub esp, 0x18
lea eax, [esp + 0x160]
mov ecx, esp
mov ebx, dword [esi]
push eax
call fcn.0064dc70
mov ecx, esi
call dword [ebx + 0xa0]
mov esi, dword [ebp + 0x18]
fstp qword [esp + 0x80]
mov ecx, dword [esi + 8]
mov ebx, ecx
mov dword [esp + 0x8c], ebx
inc ebx
test ebx, ebx
jne 0x52d3a1
mov eax, dword [esi + 4]
test eax, eax
je 0x52d394
push eax
mov dword [esp + 0x3c], ecx
call fcn.0065e732
add esp, 4
mov dword [esi + 4], ebx
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
jmp 0x52d4bb
mov edx, dword [esi + 4]
test edx, edx
jne 0x52d3dc
lea edi, [ebx*8]
push edi
call fcn.0065e5d0
mov edx, eax
mov ecx, edi
mov dword [esi + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
jmp 0x52d4b7
mov edi, dword [esi + 0xc]
cmp ebx, edi
jg 0x52d41d
cmp ecx, ebx
jge 0x52d40d
mov eax, ebx
lea edi, [edx + ecx*8]
sub eax, ecx
lea ecx, [eax*8]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 8], ebx
jmp 0x52d4b7
jle 0x52d415
sub ecx, ebx
mov dword [esp + 0x38], ecx
mov dword [esi + 8], ebx
jmp 0x52d4b7
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x52d447
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x52d43b
mov eax, 4
jmp 0x52d447
cmp eax, 0x400
jle 0x52d447
mov eax, 0x400
add eax, edi
cmp ebx, eax
mov dword [esp + 0x3c], eax
jl 0x52d455
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x3c]
lea ecx, [eax*8]
push ecx
call fcn.0065e5d0
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
shl ecx, 3
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 8]
sub edx, ecx
lea eax, [eax + ecx*8]
push edx
push eax
call fcn.0049d190
mov ecx, dword [esi + 4]
push ecx
call fcn.0065e732
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
add esp, 4
mov dword [esi + 4], edx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x8c]
fld qword [esp + 0x80]
fstp qword [ecx + edx*8]
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
inc edi
cmp edi, eax
mov dword [esp + 0x2c], edi
jle 0x52cf8c
mov eax, dword [esp + 0x34]
inc esi
cmp esi, eax
mov dword [esp + 0x24], esi
jle 0x52cdf9
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret