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

Disassembly:
sub esp, 0x84
push esi
mov esi, dword [esp + 0x8c]
push 0xffffffffffffffff
push esi
call fcn.004020f0
add esp, 8
cmp dword [esi + 0x58], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
jge 0x402504
mov eax, 0xffffff7d
pop esi
add esp, 0x84
ret
cmp dword [esi + 4], 0
jne 0x402517
mov eax, 0xffffff76
pop esi
add esp, 0x84
ret
push ebx
mov ebx, dword [esp + 0x98]
test ebx, ebx
jl 0x402b22
mov ecx, dword [esp + 0x94]
jg 0x402538
test ecx, ecx
jb 0x402b22
cmp ebx, edx
jg 0x402b22
jl 0x40254a
cmp ecx, eax
ja 0x402b22
push ebp
push edi
mov edi, dword [esi + 0x34]
sub edi, 1
mov dword [esp + 0x28], edi
js 0x402592
mov ebp, dword [esi + 0x44]
mov ecx, edi
shl ecx, 4
lea ecx, [ecx + ebp + 8]
mov ebp, dword [ecx]
sub eax, ebp
mov ebp, dword [ecx + 4]
sbb edx, ebp
cmp ebx, edx
jg 0x402586
jl 0x40257c
cmp dword [esp + 0x9c], eax
jae 0x402586
sub edi, 1
sub ecx, 0x10
test edi, edi
jge 0x402564
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov edx, dword [esi + 0x38]
mov eax, dword [edx + edi*8 + 8]
lea ecx, [edx + edi*8]
mov edx, dword [ecx + 0xc]
shl edi, 4
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x44]
mov ebp, dword [edi + eax]
mov ebx, dword [edi + eax + 8]
add edi, eax
mov eax, dword [edi + 4]
mov edi, dword [edi + 0xc]
add ebx, ebp
adc edi, eax
mov dword [esp + 0x50], edi
mov edi, ebp
sub edi, dword [esp + 0x20]
mov dword [esp + 0x38], eax
sbb eax, dword [esp + 0x24]
add edi, dword [esp + 0x9c]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
adc eax, dword [esp + 0xa0]
cmp ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
jg 0x4028aa
jl 0x402620
cmp edx, dword [esp + 0x18]
jae 0x4028aa
jmp 0x402620
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
sub ecx, ebx
sbb eax, ebp
test eax, eax
jg 0x402646
jl 0x402642
cmp ecx, 0x10000
jae 0x402646
mov edi, ebp
jmp 0x4026a3
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
push eax
push ecx
sbb ebx, edi
push ebx
push edx
call fcn.004753e0
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x50]
sbb ebx, edi
push ebx
push ecx
push edx
push eax
call fcn.004719c0
mov ebx, eax
add ebx, dword [esp + 0x10]
mov edi, edx
adc edi, ebp
sub ebx, 0x10000
sbb edi, 0
cmp edi, ebp
jg 0x4026a3
jl 0x402697
cmp ebx, dword [esp + 0x10]
ja 0x4026a3
mov ebx, dword [esp + 0x10]
add ebx, 1
mov edi, ebp
adc edi, 0
push edi
push ebx
mov eax, esi
call fcn.00401090
cdq
add esp, 8
mov ebp, eax
or eax, edx
jne 0x402b07
lea ebx, [ebx]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esi + 8]
mov edx, dword [esp + 0x1c]
sbb edx, dword [esi + 0xc]
lea eax, [esp + 0x64]
push edx
push ecx
push eax
call fcn.004010f0
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffff80
mov dword [esp + 0x48], edx
jne 0x4026f1
cmp edx, 0xffffffff
je 0x402b07
cmp dword [esp + 0x48], 0
jg 0x402750
jl 0x4026fe
test ebp, ebp
jae 0x402750
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 1
adc eax, 0
cmp edi, eax
jl 0x4028aa
jg 0x40271e
cmp ebx, ecx
jbe 0x4028aa
mov edx, ebx
or edx, edi
je 0x402b07
add ebx, 0xffff0000
adc edi, 0xffffffff
cmp edi, dword [esp + 0x14]
jg 0x402846
jl 0x402747
cmp ebx, dword [esp + 0x10]
ja 0x402846
mov ebx, ecx
mov edi, eax
jmp 0x402846
lea ecx, [esp + 0x64]
push ecx
call fcn.0041b500
mov edx, dword [esi + 0x40]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [edx + ecx*4]
jne 0x40285d
lea edx, [esp + 0x64]
push edx
call fcn.0041b470
mov ecx, eax
and ecx, edx
add esp, 4
cmp ecx, 0xffffffff
je 0x40285d
cmp edx, dword [esp + 0x30]
jg 0x4027df
jl 0x402795
cmp eax, dword [esp + 0x2c]
jae 0x4027df
mov ecx, dword [esp + 0x48]
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x2c]
sub ecx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
sbb eax, edx
test eax, eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], edx
jg 0x40288c
jl 0x40285d
cmp ecx, 0xac44
ja 0x40288c
jmp 0x40285d
mov ecx, dword [esp + 0x10]
add ecx, 1
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x14]
adc ecx, 0
cmp edi, ecx
mov dword [esp + 0x58], ecx
jl 0x4028aa
jg 0x402809
cmp ebx, dword [esp + 0x54]
jbe 0x4028aa
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esi + 8]
jne 0x40287c
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esi + 0xc]
jne 0x40287c
mov edx, dword [esp + 0x48]
add ebx, 0xffff0000
adc edi, 0xffffffff
cmp edi, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edx
jg 0x402846
jl 0x40283e
cmp ebx, dword [esp + 0x10]
ja 0x402846
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
push edi
push ebx
mov eax, esi
call fcn.00401090
cdq
mov ebp, eax
add esp, 8
or eax, edx
jne 0x402b07
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x1c]
jg 0x4028aa
jl 0x4026c0
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x18]
jae 0x4028aa
jmp 0x4026c0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x14], eax
jl 0x402620
jg 0x4028aa
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x10], ecx
jb 0x402620
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
push edx
push ebx
mov eax, esi
call fcn.00401090
cdq
mov ebp, eax
or eax, 0xffffffff
mov ecx, ebp
add esp, 8
or ecx, edx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
jne 0x402b07
push eax
push eax
lea edx, [esp + 0x5c]
push edx
call fcn.004010f0
add esp, 0xc
test edx, edx
mov ebp, eax
jl 0x402b07
jg 0x4028f7
test ebp, ebp
jb 0x402b07
mov edi, dword [esp + 0x28]
cmp edi, dword [esi + 0x60]
je 0x40291a
call fcn.00401cb0
mov eax, dword [esi + 0x40]
mov dword [esi + 0x60], edi
mov ecx, dword [eax + edi*4]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x58], 3
jmp 0x402929
lea edx, [esi + 0x1e0]
push edx
call fcn.0041d380
add esp, 4
mov eax, dword [esi + 0x5c]
push eax
lea edi, [esi + 0x78]
push edi
call fcn.0041bda0
lea ecx, [esp + 0x5c]
push ecx
push edi
call fcn.0041ba90
lea edx, [esp + 0x84]
push edx
push edi
call fcn.0041bef0
cdq
mov ecx, eax
add esp, 0x18
or ecx, edx
je 0x4029a9
xor ebp, ebp
jmp 0x402960
cmp edx, ebp
jl 0x402a71
jg 0x402972
cmp eax, ebp
jb 0x402a71
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
jne 0x402a7b
push ebp
push edi
call fcn.0041bed0
lea ecx, [esp + 0x7c]
push ecx
push edi
call fcn.0041bef0
cdq
mov ecx, eax
add esp, 0x10
or ecx, edx
jne 0x402960
mov edx, dword [esp + 0x40]
push edx
push ebx
mov eax, esi
call fcn.00401090
cdq
add esp, 8
test edx, edx
mov ebp, eax
jl 0x402b07
jg 0x4029ce
test ebp, ebp
jb 0x402b07
lea eax, [esp + 0x54]
push eax
mov eax, esi
call fcn.004011a0
mov edi, edx
add esp, 4
test edi, edi
mov ebp, eax
jl 0x402b07
jg 0x4029f3
test ebp, ebp
jb 0x402b07
lea ecx, [esp + 0x54]
push ecx
call fcn.0041b500
add esp, 4
cmp eax, dword [esi + 0x5c]
jne 0x402a2f
lea edx, [esp + 0x54]
push edx
call fcn.0041b470
add esp, 4
cmp edx, 0xffffffff
jg 0x402a5b
jl 0x402a1e
cmp eax, 0xffffffff
ja 0x402a5b
lea eax, [esp + 0x54]
push eax
call fcn.0041b440
add esp, 4
test eax, eax
je 0x402a5b
lea ecx, [esp + 0x54]
push ecx
mov eax, esi
mov dword [esi + 8], ebp
mov dword [esi + 0xc], edi
call fcn.004011a0
mov edi, edx
add esp, 4
test edi, edi
mov ebp, eax
jg 0x4029f3
jl 0x402b07
test ebp, ebp
jae 0x4029f3
jmp 0x402b07
push edi
push ebp
push esi
call fcn.00402160
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x84
ret
mov ebp, 0xffffff78
jmp 0x402aff
mov eax, dword [esi + 0x60]
mov edi, dword [esi + 0x44]
shl eax, 4
sub ecx, dword [eax + edi]
sbb edx, dword [eax + edi + 4]
mov dword [esi + 0x50], ecx
cmp edx, ebp
mov dword [esi + 0x54], edx
jg 0x402aa1
jl 0x402a9b
cmp ecx, ebp
jae 0x402aa1
mov dword [esi + 0x50], ebp
mov dword [esi + 0x54], ebp
mov edx, dword [esp + 0x20]
add dword [esi + 0x50], edx
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0xa0]
adc dword [esi + 0x54], eax
mov ecx, dword [esi + 0x54]
cmp ecx, edi
jg 0x402afa
jl 0x402acb
mov edx, dword [esi + 0x50]
cmp edx, dword [esp + 0x9c]
ja 0x402afa
push 0xffffffffffffffff
push esi
call fcn.004020f0
add esp, 8
cmp edi, edx
jg 0x402afa
jl 0x402ae5
cmp dword [esp + 0x9c], eax
ja 0x402afa
fldz
pop edi
pop ebp
fst qword [esi + 0x68]
pop ebx
fstp qword [esi + 0x70]
xor eax, eax
pop esi
add esp, 0x84
ret
mov ebp, 0xffffff7f
mov dword [esp + 0x48], 0xffffffff
or eax, 0xffffffff
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
call fcn.00401cb0
pop edi
mov eax, ebp
pop ebp
pop ebx
pop esi
add esp, 0x84
ret
pop ebx
mov eax, 0xffffff7d
pop esi
add esp, 0x84
ret