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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0xc], 0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x14]
push eax
push 0
push 0
mov dword [esp + 0x48], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
call fcn.004305d0
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x40]
push ecx
push edi
call fcn.0041b060
lea edx, [esp + 0x20]
lea eax, [esp + 0x48]
push edx
push eax
call fcn.004304d0
mov eax, dword [esp + 0x28]
add esp, 0x1c
cmp eax, 2
jl 0x416a29
push edi
call fcn.0041ae30
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x4169f3
mov eax, dword [esp + 0xc]
xor edi, edi
dec eax
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x9c]
push ecx
lea eax, [esp + 0x70]
push edx
lea ecx, [esp + 0x8c]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x54]
push eax
push ecx
push 1
push esi
push str.DUMMY
call fcn.0041a530
add esp, 0x34
test eax, eax
je 0x4169e7
mov ecx, dword [esp + 0x3c]
cmp ecx, 1
je 0x416922
jle 0x416987
cmp ecx, 3
jg 0x416987
fld qword [esp + 0x18]
fcom qword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x41685d
fadd qword [0x440248]
fcom qword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x416848
fst qword [esp + 0x18]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x416875
fld qword [esp + 0x10]
fxch st(1)
fstp qword [esp + 0x10]
fstp qword [esp + 0x18]
jmp 0x416877
fstp st(0)
cmp ecx, 2
jne 0x41689c
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x544486e0
mov dword [esp + 0x1c], 0x401921fb
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x78]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0xa0]
push eax
push ecx
call fcn.00432cb0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x78]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0xb8]
push eax
push ecx
call fcn.00432cb0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push eax
push ecx
call fcn.00416670
fcomp qword [0x4401e8]
add esp, 0x48
fnstsw ax
test ah, 1
je 0x416987
mov edi, 1
jmp 0x416987
lea edx, [esp + 0x60]
lea eax, [esp + 0x78]
push edx
push eax
call fcn.00432c80
fcomp qword [0x4401e8]
add esp, 8
fnstsw ax
test ah, 1
je 0x416946
mov edi, 1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x416987
lea ecx, [esp + 0x78]
lea edx, [esp + 0xa8]
push ecx
push edx
call fcn.00419500
lea eax, [esp + 0x68]
lea ecx, [esp + 0x80]
push eax
push ecx
call fcn.00419500
lea edx, [esp + 0xb8]
lea eax, [esp + 0x70]
push edx
push eax
call fcn.00419500
add esp, 0x18
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov dword [esi], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x70]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
lea ecx, [esp + 0x34]
lea edx, [esp + 0x40]
push ecx
push edx
mov dword [esi + 0x14], eax
call fcn.004306b0
add esp, 8
test edi, edi
je 0x4169d5
lea eax, [esp + 0x40]
push eax
call fcn.0042f610
add esp, 4
jmp 0x4169e7
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x40]
push eax
push eax
push ecx
call fcn.004305d0
add esp, 0xc
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4167c2
lea edx, [esp + 0x34]
push edx
call fcn.00430490
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esi], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x60]
mov dword [esi + 0x10], ecx
add esp, 4
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret