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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x10], ecx
jmp 0x421000
mov edx, dword [esi + 0xc]
cmp edx, 1
jle 0x421583
cmp edx, 2
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 8]
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x40], edi
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x18], edi
jle 0x421037
mov eax, dword [eax]
cmp edx, 4
mov eax, dword [eax + 8]
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x50], edi
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], eax
jge 0x4210c9
mov edi, dword [ecx + 8]
mov ecx, esi
call fcn.0047e8c4
test edi, edi
je 0x421072
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
mov eax, dword [esi + 4]
mov edi, dword [eax + 8]
mov ecx, esi
call fcn.0047e8c4
test edi, edi
je 0x42108c
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
push ecx
mov ecx, dword [esp + 0x30]
push edx
add ecx, 0x3c
call fcn.0042c360
jmp 0x421000
fld qword [esp + 0x48]
fsub qword [esp + 0x18]
fstp qword [esp + 0x68]
fld qword [esp + 0x50]
mov eax, dword [esp + 0x6c]
fsub qword [esp + 0x40]
mov ecx, dword [esp + 0x68]
push eax
push ecx
fstp qword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
push edx
push eax
call fcn.0042aac0
fstp qword [esp + 0x68]
fld qword [esp + 0x60]
mov ecx, dword [esi + 8]
fadd qword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
add esp, 0x10
fmul qword [0x4a79e0]
mov dword [esp + 0x14], ecx
fstp qword [esp + 0x78]
fld qword [esp + 0x48]
fadd qword [esp + 0x18]
fmul qword [0x4a79e0]
fstp qword [esp + 0x80]
jmp 0x421140
mov edx, dword [esp + 0x14]
fld qword [0x4ab2e0]
mov eax, dword [edx + 8]
fmul qword [0x4a79e0]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
fstp qword [esp + 0x88]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
fld qword [esp + 0x20]
sub esp, 0x10
fsub qword [esp + 0x58]
fstp qword [esp + 8]
fld qword [esp + 0x38]
fsub qword [esp + 0x60]
fstp qword [esp]
call fcn.0042aac0
fadd qword [esp + 0x98]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x88]
fstp qword [esp + 0x70]
add esp, 0x10
fld qword [esp + 0x20]
mov dword [esp + 0x3c], ecx
fadd qword [esp + 0x48]
mov ecx, dword [esp + 0x64]
push ecx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x64]
push edx
sub esp, 0x18
fmul qword [0x4a79e0]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xa4]
fstp qword [esp + 0x10]
mov dword [esp + 0x54], eax
fld qword [esp + 0x48]
lea eax, [esp + 0x50]
fadd qword [esp + 0x70]
lea ecx, [esp + 0x58]
fmul qword [0x4a79e0]
fstp qword [esp + 8]
fld qword [esp + 0xa8]
fadd qword [esp + 0x78]
fstp qword [esp]
push eax
push ecx
call fcn.0042ae40
fld qword [esp + 0x58]
fsub qword [esp + 0x40]
add esp, 0x18
fstp qword [esp + 8]
fld qword [esp + 0x48]
fsub qword [esp + 0x50]
fstp qword [esp]
call fcn.0046a0f9
mov edx, dword [ebp + 0x10]
fstp qword [esp + 0x98]
mov eax, dword [ebp + 0xc]
add esp, 0x10
push edx
mov edx, dword [esp + 0x90]
push eax
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x40]
push esi
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
mov ecx, dword [esp + 0x58]
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00420eb0
test eax, eax
jg 0x4212bc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x28]
push esi
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push edi
push ebx
call fcn.00420d90
test eax, eax
jg 0x4212bc
je 0x421140
cmp eax, 1
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edx + 8]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
jne 0x42131e
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x30]
mov eax, ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x28]
push edx
push edi
push ebx
add ecx, 0x3c
call fcn.0042c360
jmp 0x42154d
cmp eax, 2
jne 0x42154d
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
push eax
call fcn.0046a0f9
fstp qword [esp + 0x90]
fld qword [esp + 0x30]
fsub qword [esp + 0x58]
fstp qword [esp + 8]
fld qword [esp + 0x38]
fsub qword [esp + 0x60]
fstp qword [esp]
call fcn.0046a0f9
fstp qword [esp + 0x98]
fld qword [esp + 0x30]
fsub qword [esp + 0x28]
fstp qword [esp + 8]
fld qword [esp + 0x38]
fsub qword [esp + 0x50]
fstp qword [esp]
call fcn.0046a0f9
fstp qword [esp + 0x88]
fld qword [esp + 0x28]
fsub qword [esp + 0x40]
fstp qword [esp + 8]
fld qword [esp + 0x50]
fsub qword [esp + 0x48]
fstp qword [esp]
call fcn.0042aac0
fstp qword [esp + 0x68]
fld qword [esp + 0x30]
fsub qword [esp + 0x40]
fstp qword [esp + 8]
fld qword [esp + 0x38]
fsub qword [esp + 0x48]
fstp qword [esp]
call fcn.0042aac0
fstp qword [esp + 0x70]
add esp, 0x10
fld qword [esp + 0x88]
fmul qword [esp + 0x88]
fld qword [esp + 0x80]
fmul qword [esp + 0x80]
faddp st(1)
fld qword [esp + 0x78]
fmul qword [esp + 0x78]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4214a6
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push eax
push ecx
call fcn.0042b440
fcomp qword [0x4ab2e0]
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x421469
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x38]
push edi
push ebx
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push ecx
push edx
push eax
jmp 0x421541
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x58]
push edi
push ebx
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push edx
jmp 0x421541
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
push edx
push eax
call fcn.0042b440
fcomp qword [0x4ab2e0]
add esp, 0x10
fnstsw ax
test ah, 5
jp 0x421509
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x38]
push edi
push ebx
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push edx
jmp 0x421541
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x58]
push edi
push ebx
push ecx
mov ecx, dword [esp + 0x60]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x44]
add ecx, 0x74
call fcn.00426bb0
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x14]
cmp eax, ebx
je 0x421000
lea esp, [esp]
mov edi, dword [eax + 8]
mov ecx, esi
call fcn.0047e8c4
test edi, edi
je 0x421577
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x421560
jmp 0x421000
mov ecx, esi
call fcn.00429a50
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10