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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
mov dword [esp + 0x28], edi
je 0x41923d
mov ecx, dword [edi + 0x5a8]
lea eax, [edi + 0x5a8]
push eax
call dword [ecx + 0x18]
test eax, eax
je 0x418f4c
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x154]
lea ecx, [esp + 0x70]
mov edi, eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x48]
mov edx, dword [eax]
mov dword [esp + 0x60], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x64], ecx
mov ecx, dword [0x8247bc]
mov edx, dword [eax + 8]
mov eax, dword [0x824798]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
or eax, 0xffffffff
mov dword [esp + 0x68], edx
mov edx, dword [0x8247c0]
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], eax
mov eax, dword [0x8247b8]
mov dword [esp + 0x70], eax
mov al, byte [esi + 0x14]
test al, 4
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
je 0x418fde
mov ecx, dword [esi + 0x494]
test ecx, ecx
je 0x418fde
mov eax, dword [ecx]
lea edx, [esp + 0x50]
push edx
call dword [eax + 0x48]
mov ecx, dword [eax]
mov dword [esp + 0x70], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x74], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x78], eax
lea eax, [edi - 0x100]
cmp eax, 0x100
mov dword [esp + 0x1c], eax
jle 0x4191e4
fild dword [esp + 0x64]
fstp qword [esp + 0x50]
fild dword [esp + 0x60]
fstp qword [esp + 0x60]
fild dword [esp + 0x1c]
mov dword [esp + 0x18], 0
fstp qword [esp + 0x48]
xor ecx, ecx
mov ch, byte [esp + 0x18]
movsx edx, cx
sub edx, 0x3fff
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
fmul qword [0x786620]
fstp qword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
push edi
push ebx
call fcn.004b9fa0
fmul qword [esp + 0x50]
fsubr qword [esp + 0x58]
call fcn.0076a6b0
push edi
push ebx
mov esi, eax
call fcn.004b9ff0
fmul qword [esp + 0x58]
add esp, 0x10
fadd qword [esp + 0x60]
call fcn.0076a6b0
mov edi, eax
lea ecx, [esp + 0xc]
cdq
and edx, 0xff
push 1
add eax, edx
push ecx
sar eax, 8
mov word [esp + 0x2c], ax
mov eax, esi
cdq
and edx, 0xff
mov ecx, 0x81a800
add eax, edx
sar eax, 8
mov word [esp + 0x2e], ax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
call fcn.00557300
test al, al
je 0x4191a8
mov eax, dword [0xa255a8]
mov ebx, dword [esp + 0x28]
test eax, eax
jne 0x4190e3
mov al, byte [ebx + 0x32c]
test al, al
jne 0x4190e3
lea edx, [esp + 0xc]
mov ecx, 0x81a800
push edx
call fcn.005453b0
test byte [eax + 0x12c], 0x10
je 0x4191a8
lea eax, [esp + 0xc]
push 1
push eax
mov ecx, ebx
call fcn.00419250
test al, al
je 0x4191a8
mov eax, dword [esp + 0x70]
mov ecx, dword [0x8247b8]
cmp eax, ecx
jne 0x419123
mov ecx, dword [esp + 0x74]
mov edx, dword [0x8247bc]
cmp ecx, edx
jne 0x419123
mov edx, dword [esp + 0x78]
mov ecx, dword [0x8247c0]
cmp edx, ecx
je 0x41913d
mov edx, dword [esp + 0x74]
sub edi, eax
sub esi, edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], esi
fild dword [esp + 0x3c]
fild dword [esp + 0x38]
jmp 0x419162
mov eax, dword [ebx]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, ebx
call dword [eax + 0x48]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub ecx, edi
sub eax, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
fild dword [esp + 0x44]
fild dword [esp + 0x40]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
sub esp, 8
faddp st(1)
fstp qword [esp]
fstp st(0)
fstp st(0)
call fcn.004b9f30
add esp, 8
call fcn.0076a6b0
mov ecx, dword [esp + 0x10]
cmp ecx, 0xffffffff
je 0x419190
cmp eax, ecx
jge 0x4191a8
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
add eax, 0x10
cmp eax, 0xff
mov dword [esp + 0x18], eax
jl 0x419013
cmp dword [esp + 0x10], 0xffffffff
jne 0x4191dd
mov eax, dword [esp + 0x1c]
sub eax, 0x100
cmp eax, 0x100
mov dword [esp + 0x1c], eax
jg 0x419003
cmp dword [esp + 0x2c], 0xffffffff
jne 0x4191ec
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x10], 0xffffffff
je 0x41923d
mov edx, dword [0xa255a0]
push 0x63
push 0
lea ecx, [edx + 0x218]
call fcn.0062fcf0
cmp eax, 0x32
jge 0x419225
lea eax, [esp + 0x14]
mov ecx, 0x81a800
push eax
call fcn.005453b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x81a800
call fcn.005453b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4