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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 3
jge 0x411711
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
mov eax, esi
cdq
sub eax, edx
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov edi, eax
mov eax, dword [ebx]
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x80], edx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x84], eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x88], ecx
sar edi, 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x8c], edx
lea eax, [edi + edi*2]
mov dword [esp + 0x5c], edi
mov ecx, dword [ebx + eax*8]
mov edx, dword [ebx + eax*8 + 4]
lea eax, [ebx + eax*8]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x70], ecx
lea eax, [esp + 0x78]
mov dword [esp + 0x74], edx
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0xac]
push ecx
push edx
call fcn.00418e20
lea eax, [esp + 0xb4]
push eax
call fcn.00418ee0
add esp, 0x10
dec esi
test esi, esi
fstp st(0)
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x48], esi
jle 0x4118da
lea ecx, [esi + esi*2]
lea eax, [ebx + ecx*8 + 0x10]
mov dword [esp + 0x44], eax
cmp esi, edi
je 0x4118c6
mov edx, dword [eax - 0x10]
mov ecx, dword [eax - 0xc]
mov dword [esp + 0x2c], edx
mov edx, dword [eax - 8]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 4]
mov dword [esp + 0x34], edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
lea ecx, [esp + 0x60]
mov dword [esp + 0x40], eax
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x94]
push edx
push eax
call fcn.00418e20
lea ecx, [esp + 0x9c]
push ecx
call fcn.00418ee0
lea edx, [esp + 0xd0]
lea eax, [esp + 0xa0]
push edx
lea ecx, [esp + 0xbc]
push eax
push ecx
fstp st(0)
call fcn.00419040
lea edx, [esp + 0xdc]
fstp st(0)
push edx
call fcn.00418eb0
fcom qword [esp + 0x70]
add esp, 0x20
fnstsw ax
test ah, 0x41
jne 0x4118c0
fstp qword [esp + 0x50]
mov ecx, 6
lea esi, [esp + 0xc0]
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x5c]
jmp 0x4118c2
fstp st(0)
mov eax, dword [esp + 0x44]
dec esi
sub eax, 0x18
test esi, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], eax
jg 0x41180f
lea eax, [esp + 0x14]
push eax
call fcn.00418eb0
fcomp qword [0x551298]
add esp, 4
fnstsw ax
test ah, 1
je 0x4118fe
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x14]
push ecx
call fcn.00418ee0
fstp st(0)
fld qword [esp + 0x18]
fabs
fcomp qword [0x550fc8]
add esp, 4
xor ecx, ecx
xor edx, edx
fnstsw ax
test ah, 1
je 0x41192e
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
jmp 0x41194b
fld qword [esp + 0x14]
fcomp qword [0x550f20]
fnstsw ax
test ah, 1
je 0x411946
mov edx, 1
jmp 0x41194b
mov ecx, 1
fld qword [esp + 0x1c]
fabs
fcomp qword [0x550fc8]
fnstsw ax
test ah, 1
je 0x411970
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
jmp 0x411985
fld qword [esp + 0x1c]
fcomp qword [0x550f20]
fnstsw ax
test ah, 1
je 0x411984
inc edx
jmp 0x411985
inc ecx
fld qword [esp + 0x24]
fabs
fcomp qword [0x550fc8]
fnstsw ax
test ah, 1
je 0x4119aa
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
jmp 0x4119bf
fld qword [esp + 0x24]
fcomp qword [0x550f20]
fnstsw ax
test ah, 1
je 0x4119be
inc edx
jmp 0x4119bf
inc ecx
cmp edx, ecx
jle 0x4119d7
push 0xbff00000
lea edx, [esp + 0x18]
push 0
push edx
call fcn.00418fa0
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push 0
push 0
push 0
push ecx
call fcn.004113d0
add esp, 0x14
test eax, eax
je 0x4119ff
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x4c]
mov edx, dword [ebx]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esi]
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x40], ecx
add eax, 0x60
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.004464c0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
fld qword [esp + 0x3c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov edx, dword [ecx + 0x30]
mov eax, dword [ecx + 0x34]
fabs
fcomp qword [ebp + 0x10]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x54]
mov edx, dword [ecx + 0x50]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
fnstsw ax
test ah, 0x41
jne 0x411ab5
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push ecx
push 0
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004113d0
add esp, 0x14
test eax, eax
je 0x411ab1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, ebx
jle 0x411b1d
mov edx, dword [esi - 0x10]
mov eax, dword [esi - 0xc]
mov dword [esp + 0x2c], edx
mov edx, dword [esi - 8]
mov dword [esp + 0x30], eax
mov eax, dword [esi - 4]
mov dword [esp + 0x34], edx
mov edx, dword [esi]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x40], eax
add ecx, 0x60
push edx
lea eax, [esp + 0x30]
push ecx
push eax
call fcn.004464c0
fld qword [esp + 0x48]
fabs
fcomp qword [ebp + 0x10]
add esp, 0xc
fnstsw ax
test ah, 0x41
je 0x4118f4
mov ecx, dword [esp + 0x10]
inc edi
add esi, 0x18
cmp edi, ebx
jl 0x411abe
mov edx, dword [ebp + 0x18]
pop edi
pop esi
xor eax, eax
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret