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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
push edi
je 0x423164
mov eax, dword [0x47e8c4]
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0xc0]
lea eax, [esi + 0xc4]
test eax, eax
je 0x423164
cmp ecx, dword [eax]
jge 0x423164
test ecx, ecx
jl 0x423164
mov edi, dword [eax + 0xc]
imul edi, ecx
add edi, dword [eax + 0x10]
je 0x423164
fld dword [esi + 0x78]
fdiv dword [edi + 0x1c]
fld dword [esp + 0x20]
fcomp dword [esi + 0x78]
fnstsw ax
test ah, 1
jne 0x42302d
lea eax, [esi + 0x10]
mov ecx, edi
mov edx, eax
mov ebx, dword [ecx]
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
lea ecx, [edi + 0xc]
mov ebx, ecx
lea edx, [esi + 0x1c]
fstp st(0)
mov ebp, dword [ebx]
mov dword [edx], ebp
mov ebp, dword [ebx + 4]
mov dword [edx + 4], ebp
mov ebx, dword [ebx + 8]
mov dword [edx + 8], ebx
mov edx, dword [edi + 0x18]
test dh, 4
je 0x42300a
mov edx, edi
fld dword [esp + 0x20]
mov ebx, dword [edx]
mov dword [eax], ebx
mov ebx, dword [edx + 4]
mov dword [eax + 4], ebx
mov edx, dword [edx + 8]
fsub dword [esi + 0x78]
mov dword [eax + 8], edx
mov eax, dword [ecx]
mov dword [esi + 0x1c], eax
mov edx, dword [ecx + 4]
mov dword [esi + 0x20], edx
mov eax, dword [ecx + 8]
fstp dword [esp + 0x20]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x18]
test ah, 0x40
je 0x422fc0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x64], ecx
fld dword [edi + 0x1c]
fcomp dword [0x4671bc]
fnstsw ax
test ah, 0x40
je 0x422fdf
mov eax, dword [esi + 0xc0]
xor edx, edx
mov dl, byte [edi + 0x20]
cmp edx, eax
je 0x422ffb
xor eax, eax
mov al, byte [edi + 0x20]
push eax
push esi
call fcn.00422a80
add esp, 8
test eax, eax
je 0x423164
jmp 0x422efc
mov dword [esi + 0x68], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor eax, eax
mov dword [esi + 0x68], 1
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
fld dword [esi + 0x78]
fsub dword [esp + 0x20]
fstp dword [esi + 0x78]
fld dword [esp + 0x20]
fmul dword [esi + 0x28]
fld dword [esp + 0x20]
fmul dword [esi + 0x2c]
fstp dword [esp + 0x14]
fld dword [esp + 0x20]
fmul dword [esi + 0x30]
fstp dword [esp + 0x18]
fadd dword [esi + 0x10]
fstp dword [esi + 0x10]
fld dword [esp + 0x14]
fadd dword [esi + 0x14]
fstp dword [esi + 0x14]
fld dword [esp + 0x18]
fadd dword [esi + 0x18]
fstp dword [esi + 0x18]
fld dword [esp + 0x20]
fmul dword [esi + 0x34]
call fcn.004518d4
mov ebx, dword [esi + 0x1c]
fld dword [esp + 0x20]
add ebx, eax
mov dword [esi + 0x1c], ebx
fmul dword [esi + 0x38]
call fcn.004518d4
mov edx, dword [esi + 0x20]
fld dword [esp + 0x20]
add edx, eax
mov dword [esi + 0x20], edx
fmul dword [esi + 0x3c]
call fcn.004518d4
mov ecx, dword [esi + 0x24]
add ecx, eax
mov dword [esi + 0x24], ecx
mov eax, dword [edi + 0x18]
test ah, 0x40
je 0x423162
mov ebx, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
and ebx, 0xff
and ecx, 0xff
sub ecx, ebx
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
fmul st(1)
call fcn.004518d4
add eax, ebx
xor ebx, ebx
xor edx, edx
mov dword [esi + 0x64], eax
mov bl, byte [edi + 0x31]
mov dl, byte [edi + 0x35]
sub edx, ebx
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul st(1)
call fcn.004518d4
mov edx, dword [esi + 0x64]
add eax, ebx
shl eax, 8
or edx, eax
xor ebx, ebx
xor eax, eax
mov dword [esi + 0x64], edx
mov bl, byte [edi + 0x32]
mov al, byte [edi + 0x36]
sub eax, ebx
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fmul st(1)
call fcn.004518d4
mov edx, dword [esi + 0x64]
add eax, ebx
shl eax, 0x10
or edx, eax
mov dword [esi + 0x64], edx
mov ebx, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
shr ebx, 0x18
shr ecx, 0x18
sub ecx, ebx
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
fmul st(1)
call fcn.004518d4
mov ecx, dword [esi + 0x64]
add eax, ebx
shl eax, 0x18
or ecx, eax
pop edi
mov dword [esi + 0x64], ecx
pop esi
pop ebp
pop ebx
fstp st(0)
add esp, 0xc
ret
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret