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

Disassembly:
sub esp, 0x470
push ebx
push esi
mov esi, ecx
mov cl, byte [esi + 0x51]
test cl, cl
je 0x652c4c
mov eax, dword [esi + 0x70]
mov eax, dword [eax + 0x88]
jmp 0x652c55
mov edx, dword [esi + 0x70]
mov eax, dword [edx + 0x90]
cmp byte [esi + 0x9b4], 0
mov eax, dword [eax]
mov dword [esp + 0x10], eax
je 0x652c79
test cl, cl
je 0x652c79
mov ecx, dword [esi + 0x9e0]
mov edx, dword [esi + ecx*4 + 0x9b5]
mov dword [esp + 0x10], edx
xor ebx, ebx
cmp dword [esi + 0xa1c], ebx
ja 0x652caa
mov ecx, dword [esp + 0x480]
mov eax, dword [esi]
mov edx, dword [esp + 0x47c]
mov eax, dword [eax + 0x158]
push ecx
push edx
mov ecx, esi
call eax
pop esi
pop ebx
add esp, 0x470
ret 8
lea ecx, [esi + 0xd8]
push ecx
lea edx, [esp + 0x7c]
push 0x400
push edx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], 2
call fcn.0067acb0
add esp, 0xc
cmp byte [0x992082], bl
je 0x652ce6
push 0x1b1cd34
call dword [0x794290]
cmp byte [0x992082], bl
mov eax, dword [esi + 0x4f0]
push ebp
lea ebp, [esi + 0x4f0]
push edi
mov edi, dword [eax + 0x14]
je 0x652d0a
push 0x1b1cd34
call dword [0x79428c]
lea ecx, [esp + 0x80]
push ecx
mov ecx, edi
call fcn.0053a2e0
lea edx, [esp + 0x2c]
push edx
push eax
mov ecx, esi
mov dword [esp + 0x34], ebx
call fcn.00652660
cmp byte [esi + 0x98e], bl
lea edi, [esi + 0x98e]
mov dword [esp + 0x30], ebx
je 0x652d7b
cmp byte [0x992082], bl
je 0x652d4f
push 0x1b1cd34
call dword [0x794290]
cmp byte [0x992082], 0
mov eax, dword [ebp]
mov ebx, dword [eax + 0x14]
je 0x652d69
push 0x1b1cd34
call dword [0x79428c]
push edi
mov ecx, ebx
call fcn.0053a2e0
add dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
xor ebx, ebx
cmp dword [esi + 0x53c], 0xffff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x484]
je 0x652da7
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [ebx + 8]
jge 0x652db2
mov edx, dword [ebx]
add edx, 3
mov dword [esi + 0x53c], edx
mov ecx, dword [esi + 0x960]
lea eax, [esp + 0x44]
push eax
push ecx
xor edi, edi
mov ecx, esi
mov dword [esp + 0x4c], edi
call fcn.00652660
cmp byte [esp + 0x488], 0
mov dword [esp + 0x58], edi
je 0x652ee1
mov eax, dword [0x1b1c508]
cmp byte [eax + 0xd], 0
je 0x652e04
cmp byte [eax + 0x11], 0
je 0x652e04
add eax, 0x13
push eax
mov ecx, ebp
call fcn.00439b60
mov ecx, eax
call fcn.0053a2e0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x44]
lea edi, [eax + edx]
add edi, dword [esp + 0x30]
mov eax, dword [ebx + 8]
cmp edi, eax
jl 0x652e22
mov ecx, dword [ebx]
lea ebp, [eax + ecx + 4]
jmp 0x652e2a
mov ebp, dword [esi + 0x53c]
add ebp, edi
cmp byte [0x992082], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebp
je 0x652e4a
push 0x1b1cd34
call dword [0x794290]
mov ebp, dword [esp + 0x24]
cmp byte [0x992082], 0
mov edx, dword [esi + 0x4f0]
mov eax, dword [edx + 0x14]
mov dword [esp + 0x10], eax
je 0x652e6f
push 0x1b1cd34
call dword [0x79428c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x10]
mov eax, dword [ebx + 0xc]
sub ecx, 1
cmp ecx, eax
jge 0x652e96
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebx + 4]
mov dword [esp + 0x28], eax
add eax, ecx
mov dword [esp + 0x20], eax
jmp 0x652ea5
mov ecx, dword [ebx + 4]
lea edx, [eax + ecx - 1]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
mov eax, dword [ebx]
cmp ebp, eax
jge 0x652ec2
add eax, 3
mov ecx, eax
sub ecx, edi
mov dword [esp + 0x24], eax
mov dword [esi + 0x53c], ecx
mov dword [esp + 0x1c], eax
jmp 0x652ef4
mov ecx, dword [ebx + 8]
lea edx, [eax + ecx]
cmp ebp, edx
jl 0x652ef4
mov edx, dword [esi + 0x5c]
lea edx, [edx + eax - 4]
sub eax, edi
mov dword [esp + 0x24], edx
add eax, ecx
mov dword [esp + 0x1c], edx
jmp 0x652eee
mov eax, dword [ebx]
cmp dword [esi + 0x53c], eax
jge 0x652ef4
add eax, 3
mov dword [esi + 0x53c], eax
cmp byte [esi + 0x98e], 0
mov ecx, dword [esi + 0x540]
mov edx, dword [ebx + 4]
mov eax, dword [esi + 0x53c]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0x64], edx
mov edx, dword [ebx + 0xc]
lea edi, [esi + 0x98e]
mov dword [esp + 0x50], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x60], eax
je 0x652fc5
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x1c]
call fcn.004136b0
lea ecx, [esp + 0x70]
push ecx
call fcn.00534680
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x68]
add esp, 4
add eax, edx
mov edx, dword [esp + 0x4c]
push 9
push 0
mov dword [esp + 0x18], eax
add edx, ecx
push edi
lea eax, [esp + 0x1c]
lea ebp, [esi + 0x4f0]
push eax
mov ecx, ebp
mov dword [esp + 0x24], edx
call fcn.00543db0
push eax
call fcn.00537cb0
add esp, 0x14
cmp byte [0x992082], 0
je 0x652f9f
push 0x1b1cd34
call dword [0x794290]
cmp byte [0x992082], 0
mov ecx, dword [ebp]
mov ebp, dword [ecx + 0x14]
je 0x652fb9
push 0x1b1cd34
call dword [0x79428c]
push edi
mov ecx, ebp
call fcn.0053a2e0
add dword [esp + 0x48], eax
mov edx, dword [esi + 0xa18]
mov ebp, dword [edx]
lea edi, [esi + 0xa14]
test edi, edi
fld qword [0x798940]
mov eax, dword [edi + 4]
mov dword [esp + 0x40], eax
je 0x652fe8
cmp edi, edi
je 0x652ffc
fstp st(0)
call fcn.0074ca9e
fld qword [0x798940]
mov ebx, dword [esp + 0x484]
cmp ebp, dword [esp + 0x40]
je 0x6530a2
mov eax, dword [esp + 0x18]
movzx ecx, al
mov dword [esp + 0x10], ecx
movzx ecx, byte [esp + 0x1b]
fild dword [esp + 0x10]
movzx edx, ah
fmul st(1)
movzx eax, byte [esp + 0x1a]
fstp dword [esp + 0x70]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x70]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
push edx
fmul st(1)
fstp dword [esp + 0x78]
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fmul st(1)
fstp dword [esp + 0x7c]
fild dword [esp + 0x14]
fmulp st(1)
fstp dword [esp + 0x80]
call fcn.00534680
add esp, 4
test edi, edi
jne 0x65306b
call fcn.0074ca9e
cmp ebp, dword [edi + 4]
jne 0x653075
call fcn.0074ca9e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax]
push esi
lea edx, [esp + 0x64]
push edx
lea edx, [esp + 0x50]
push edx
call eax
cmp ebp, dword [edi + 4]
jne 0x653093
call fcn.0074ca9e
mov ebp, dword [ebp]
mov ebx, dword [esp + 0x484]
jmp 0x652fd3
xor eax, eax
fstp st(0)
cmp dword [esi + 0x95c], eax
jle 0x65313a
mov edx, dword [esi + 0x958]
lea ecx, [esp + 0x38]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], eax
call fcn.00652660
mov ecx, dword [esi + 0x95c]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00652660
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x60]
mov ebp, dword [esp + 0x6c]
add ecx, edi
mov dword [esp + 0x10], ecx
add ecx, edx
add eax, edi
mov dword [esp + 0x38], eax
add eax, edx
mov edx, dword [esi + 0x70]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x64]
lea ebp, [ecx + ebp + 4]
add ecx, 0xfffffffe
add edx, 0x35
mov dword [esp + 0x3c], eax
push edx
lea eax, [esp + 0x34]
mov dword [esp + 0x44], ecx
push eax
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x40], ebp
call fcn.00535870
add esp, 0xc
jmp 0x65313e
mov edi, dword [esp + 0x30]
cmp byte [esp + 0x488], 0
je 0x653256
mov eax, dword [0x1b1c508]
cmp byte [eax + 0xd], 0
je 0x65321a
cmp byte [eax + 0xc], 0
je 0x65321a
push 0x8dce98
push 1
call fcn.00678ac0
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
mov eax, dword [0x1b1c508]
sub dword [esp + 0x5c], 4
add edx, edi
add ecx, edx
add esp, 8
mov dword [esp + 0x50], ecx
cmp byte [eax + 0x11], 0
je 0x653229
mov edx, dword [esp + 0x58]
lea eax, [ecx + edx]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 4]
lea edx, [edx + eax - 1]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x70]
add eax, 0x35
mov dword [esp + 0x58], ecx
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], edx
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00535870
add esp, 0xc
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x1c]
call fcn.004136b0
lea ecx, [esp + 0x70]
push ecx
call fcn.00534680
mov edx, dword [esi + 0x70]
mov eax, dword [0x1b1c508]
add esp, 4
push 9
add edx, 0x60
push edx
add eax, 0x13
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esi + 0x4f0]
call fcn.00543db0
push eax
call fcn.00537cb0
add esp, 0x14
jmp 0x653229
push 0x8dce84
push 1
call fcn.00678ac0
add esp, 8
cmp byte [esi + 0x534], 0
je 0x653256
mov eax, 2
add dword [esp + 0x1c], eax
add dword [esp + 0x20], eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00535870
add esp, 0xc
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x470
ret 8