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

Disassembly:
sub esp, 0xd8
mov edx, dword [0x46da30]
mov eax, dword [0x46da28]
push ebx
push ebp
push esi
push edi
push edx
mov edx, dword [0x46da34]
mov ebx, ecx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x7c]
mov eax, dword [ebx + 0x1d4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov ebp, dword [ebx + 0x244]
mov edi, dword [ebx + 0x240]
mov esi, ebp
mov eax, dword [ebx + 0x1d8]
imul esi, edi
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push 0x2000
push ecx
lea ecx, [esi + esi*2]
mov dword [esp + 0x30], edi
shl ecx, 6
push ecx
push 0
push eax
mov dword [esp + 0x64], ebp
mov dword [esp + 0x54], esi
call dword [edx + 0x2c]
test eax, eax
jl 0x40548d
xor edx, edx
xor eax, eax
test ebp, ebp
mov dword [esp + 0x24], eax
jbe 0x4053f1
xor ecx, ecx
test edi, edi
jbe 0x4053e4
xor esi, esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], esi
mov dword [esp + 0x88], ebp
fild qword [esp + 0x90]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x98], eax
fild qword [esp + 0x88]
mov dword [esp + 0x9c], esi
lea edi, [edi + edi*2]
fild qword [esp + 0x98]
lea ebp, [eax + 1]
mov dword [esp + 0xb4], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x4c], esi
fdiv st(1)
mov dword [esp + 0x5c], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x78], esi
mov esi, edx
mov dword [esp + 0xb0], ebp
lea edx, [edx + edi*2]
shl esi, 5
mov dword [esp + 0x60], edx
fstp dword [esp + 0x1c]
fidivr dword [esp + 0xb0]
jmp 0x404f91
mov eax, dword [esp + 0x24]
xor edx, edx
mov ebp, dword [ebx + 0x240]
div dword [ebx + 0x244]
mov eax, ecx
mov dword [esp + 0xa8], ecx
mov edi, edx
xor edx, edx
div ebp
imul edi, ebp
add edi, edx
mov edx, dword [ebx + 0x250]
lea eax, [edi + edi*4]
lea ebp, [edx + eax*4]
xor edx, edx
mov dword [esp + 0xac], edx
inc ecx
fild qword [esp + 0xa8]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x30], ecx
fdiv st(2)
cmp eax, edx
fild qword [esp + 0xa0]
fdiv st(3)
fst dword [esp + 0x2c]
jne 0x405004
fld dword [ebp + 4]
fmul dword [ebp]
fstp dword [esp + 0x14]
je 0x40504c
fld dword [0x46d940]
fmul qword [0x441378]
call fcn.00434e70
fld dword [0x46d944]
fmul qword [0x441378]
mov edi, eax
or edi, 0xffffff00
shl edi, 8
call fcn.00434e70
fld dword [0x46d948]
fmul qword [0x441378]
and eax, 0xff
or edi, eax
shl edi, 8
jmp 0x405193
fld dword [ebp + 4]
fmul dword [ebp]
fcom qword [0x441308]
fst dword [esp + 0x14]
fnstsw ax
test ah, 1
je 0x40506d
fstp st(0)
fld dword [0x441370]
jmp 0x405082
fcom qword [0x4412c0]
fnstsw ax
test ah, 0x41
jne 0x405082
fstp st(0)
fld dword [0x441298]
fld dword [esp + 0x14]
fcom qword [0x441308]
fnstsw ax
test ah, 1
je 0x40509d
fstp st(0)
fld dword [0x441370]
jmp 0x4050b2
fcom qword [0x4412c0]
fnstsw ax
test ah, 0x41
jne 0x4050b2
fstp st(0)
fld dword [0x441298]
fld dword [0x46d930]
fsub dword [0x46d920]
fld dword [0x46d934]
fsub dword [0x46d924]
fstp dword [esp + 0xbc]
fld dword [0x46d938]
fsub dword [0x46d928]
fstp dword [esp + 0xc0]
fmul st(1)
fstp dword [esp + 0xd0]
fld dword [esp + 0xbc]
fmul st(1)
fstp dword [esp + 0xd4]
fmul dword [esp + 0xc0]
fld dword [esp + 0xd0]
fadd dword [0x46d920]
fstp dword [esp + 0xc4]
fld dword [esp + 0xd4]
fadd dword [0x46d924]
fstp dword [esp + 0xc8]
fadd dword [0x46d928]
fld dword [esp + 0xc4]
fmul st(2)
fstp dword [esp + 0xdc]
fld dword [esp + 0xc8]
fmul st(2)
fstp dword [esp + 0xe0]
fmulp st(1)
fld dword [esp + 0xdc]
fmul qword [0x441378]
call fcn.00434e70
fld dword [esp + 0xe0]
fmul qword [0x441378]
mov edi, eax
or edi, 0xffffff00
shl edi, 8
call fcn.00434e70
fmul qword [0x441378]
and eax, 0xff
or edi, eax
shl edi, 8
call fcn.00434e70
and eax, 0xff
mov edx, dword [esp + 0x1c]
or edi, eax
mov eax, dword [ebp + 8]
and eax, 0xff
mov dword [esp + 0x38], edx
mov ecx, eax
and ecx, 0xf
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
sar eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
fmul qword [0x4412e0]
lea ecx, [esi + eax]
mov eax, dword [esp + 0x38]
fadd qword [0x441368]
fst dword [esp + 0x18]
fadd qword [0x4412e0]
fsub qword [0x441360]
fstp dword [esp + 0x20]
fild dword [esp + 0x14]
fmul qword [0x4412e0]
fadd qword [0x441368]
fld st(0)
fadd qword [0x4412e0]
fsub qword [0x441360]
fstp dword [esp + 0x14]
fld st(2)
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
mov dword [ecx], edx
mov edx, dword [esp + 0x3c]
fld dword [esp + 0x18]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 0xc], edi
mov ecx, dword [esp + 0x10]
fstp dword [esi + ecx + 0x10]
mov edx, dword [esp + 0x10]
fld st(0)
fstp dword [esi + edx + 0x14]
mov eax, dword [esp + 0x10]
fld st(2)
lea ecx, [esi + eax + 0x20]
fstp dword [esp + 0x44]
mov edx, dword [esp + 0x44]
fld st(3)
mov dword [ecx], edx
mov edx, dword [esp + 0x4c]
fstp dword [esp + 0x48]
mov eax, dword [esp + 0x48]
mov dword [ecx + 4], eax
fld dword [esp + 0x18]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 0x2c], edi
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
fstp dword [esi + ecx + 0x30]
fld dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
fstp dword [esi + edx + 0x34]
mov ecx, dword [esp + 0x10]
fld st(1)
lea edx, [esi + ecx + 0x40]
mov ecx, dword [esp + 0x58]
fstp dword [esp + 0x54]
mov eax, dword [esp + 0x54]
mov dword [edx], eax
mov eax, dword [esp + 0x5c]
fld dword [esp + 0x20]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x10]
mov dword [esi + ecx + 0x4c], edi
mov edx, dword [esp + 0x10]
fstp dword [esi + edx + 0x50]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
fld st(0)
mov dword [esp + 0x68], ecx
fstp dword [esi + eax + 0x54]
mov edx, dword [esp + 0x10]
fxch st(1)
fstp dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
lea eax, [esi + edx + 0x60]
mov edx, dword [esp + 0x68]
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
fld dword [esp + 0x20]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0x6c], edi
mov eax, dword [esp + 0x10]
fstp dword [esi + eax + 0x70]
mov ecx, dword [esp + 0x10]
fstp dword [esi + ecx + 0x74]
mov edx, dword [esp + 0x10]
fstp dword [esp + 0x7c]
mov ecx, dword [esp + 0x7c]
lea eax, [esi + edx + 0x80]
fst dword [esp + 0x80]
mov edx, dword [esp + 0x80]
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 4], edx
fld dword [esp + 0x18]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0x8c], edi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
fstp dword [esi + eax + 0x90]
fld dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x70], edx
fstp dword [esi + ecx + 0x94]
mov eax, dword [esp + 0x10]
fst dword [esp + 0x74]
lea ecx, [esi + eax + 0xa0]
mov eax, dword [esp + 0x74]
fld dword [esp + 0x20]
mov dword [ecx], edx
mov edx, dword [esp + 0x78]
add esi, 0xc0
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x10]
mov dword [esi + eax - 0x14], edi
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
fstp dword [esi + ecx - 0x10]
fld dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
cmp ecx, edi
fstp dword [esi + edx - 0xc]
jb 0x404f8d
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
mov ebp, dword [esp + 0x50]
fstp st(0)
fstp st(0)
inc eax
cmp eax, ebp
mov dword [esp + 0x24], eax
jb 0x404ef8
mov eax, dword [ebx + 0x1d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov ecx, ebx
call fcn.00402c50
mov eax, dword [ebx + 0x1d4]
push 0
push 0x1b
push eax
mov edx, dword [eax]
call dword [edx + 0xc8]
mov eax, dword [ebx + 0x1d4]
push 1
push 1
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xfc]
mov eax, dword [ebx + 0x1d4]
push 1
push 4
push 1
mov edx, dword [eax]
push eax
call dword [edx + 0xfc]
mov eax, dword [ebx + 0x1d4]
mov edx, dword [0x46da3c]
push edx
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf4]
mov eax, dword [ebx + 0x1d4]
lea edx, [esi + esi]
push edx
push 0
mov ecx, dword [eax]
push 4
push eax
call dword [ecx + 0x118]
mov ecx, ebx
call fcn.00402d60
mov eax, dword [ebx + 0x1d4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov ecx, ebx
call fcn.00407610
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret 4