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

Disassembly:
sub esp, 0xd8
push ebp
push esi
mov esi, dword [esp + 0xe4]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esi + 4]
call fcn.004ab3f0
mov ebp, eax
test ebp, ebp
jne 0x484541
pop esi
xor al, al
pop ebp
add esp, 0xd8
ret 8
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
push ebx
push edi
mov edi, dword [esp + 0xf0]
movsx eax, word [edi + 0x24]
fld dword [edi + 0x1c]
fst dword [esp + 0x18]
mov dword [esp + 0x30], eax
fld dword [edi + 0x20]
mov eax, dword [esi + 0x3c]
mov dword [esp + 0xa0], eax
fild dword [esp + 0x30]
movzx eax, word [edi + 0x26]
fmul dword [0x68f310]
mov dword [esp + 0x90], ecx
imul eax, eax, 0x1c
fst dword [esp + 0x14]
fld st(2)
fstp dword [esp + 0x80]
fld st(1)
fstp dword [esp + 0x84]
fstp dword [esp + 0x88]
fxch st(1)
movzx ecx, byte [esi + 0x58]
fstp dword [esp + 0x98]
fstp dword [esp + 0x9c]
mov dword [esp + 0x94], edx
movzx edx, byte [esi + 0x59]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esi + 0x48]
add eax, ecx
mov dword [esp + 0x8c], 0x48
mov dword [esp + 0xa8], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0xac], edx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0xb0], ecx
mov edx, dword [eax + 0x10]
mov dword [esp + 0xb4], edx
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 0x210]
xor bl, bl
test eax, eax
mov byte [esp + 0x30], bl
jne 0x484614
call fcn.004ba290
cmp eax, 9
jl 0x48461f
mov bl, 1
mov byte [esp + 0x30], bl
mov ebp, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0xd4]
call fcn.004ce980
fld dword [0x68a9c0]
fld dword [esi + 0x3c]
cmp eax, 9
fucompp
setge cl
xor ebp, ebp
mov dl, 1
fnstsw ax
test ah, 0x44
jnp 0x484652
mov dword [esp + 0xa8], ebp
xor dl, dl
xor eax, eax
test dl, dl
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x54], eax
movzx eax, word [edi + 0x14]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x10], ebp
je 0x4847ea
fld dword [esp + 0x18]
fmul dword [0x68dc18]
fst dword [esp + 0x34]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fistp dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x34], edx
fld dword [esp + 0x34]
fistp dword [esp + 0x38]
fld dword [esp + 0x14]
mov eax, dword [esp + 0x38]
fmul dword [0x68dc18]
mov edx, dword [esp + 0x18]
and eax, 0xffff
shl edx, 0x10
fstp dword [esp + 0x14]
or eax, edx
mov dword [esp + 0x5c], eax
fld dword [esp + 0x14]
fistp dword [esp + 0x18]
fld dword [esi + 0x40]
fmul dword [0x68dc18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], eax
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x18]
fld dword [esi + 0x44]
mov edx, dword [esp + 0x18]
fmul dword [0x68dc18]
mov dword [esp + 0x64], edx
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
xor edx, edx
mov dh, byte [esi + 0x58]
mov dword [esp + 0x68], eax
movzx eax, word [edi + 0x26]
imul eax, eax, 0x1c
mov dl, byte [esi + 0x59]
mov dword [esp + 0x6c], edx
mov edx, dword [esi + 0x48]
fld dword [eax + edx + 0x14]
fmul dword [0x68dc18]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x18]
movzx edx, word [edi + 0x26]
mov eax, dword [esp + 0x18]
imul edx, edx, 0x1c
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x48]
fld dword [edx + eax + 0x18]
fmul dword [0x68dc18]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x18]
movzx eax, word [edi + 0x26]
mov edx, dword [esp + 0x18]
imul eax, eax, 0x1c
mov dword [esp + 0x74], edx
mov edx, dword [esi + 0x48]
fld dword [eax + edx + 0x10]
fmul dword [0x68dc18]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
neg cl
mov dword [esp + 0x78], eax
sbb ecx, ecx
xor edx, edx
and ecx, 2
test bl, bl
mov ebx, dword [esp + 0xb8]
mov eax, dword [ebx + 0xc]
setne dl
or ecx, edx
cmp eax, ebp
mov dword [esp + 0x7c], ecx
jne 0x4847c4
mov ecx, ebx
call fcn.00483b20
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 1
lea edx, [esp + 0x5c]
push edx
push eax
mov eax, dword [ebx + 4]
push eax
call fcn.00599fc0
mov esi, eax
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp eax, ebp
jne 0x4847f9
pop edi
pop ebx
pop esi
xor al, al
pop ebp
add esp, 0xd8
ret 8
cmp esi, ebp
je 0x484883
mov ecx, dword [esi + 8]
lea edx, [esp + 0xbc]
xor eax, eax
sub ecx, edx
nop
lea edx, [ecx + eax*4]
mov edx, dword [esp + edx + 0xbc]
mov dword [esp + eax*4 + 0xbc], edx
inc eax
cmp eax, 0xb
jl 0x484810
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x28]
push edx
mov edx, dword [ebx + 4]
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x90]
push ecx
push edx
call fcn.0059b450
mov eax, dword [esp + 0x38]
mov word [edi], ax
mov cx, word [esi + 2]
add cx, ax
xor eax, eax
mov word [edi + 2], cx
mov ax, word [esi + 4]
add ax, word [esp + 0x3c]
add esp, 0x18
neg eax
mov word [edi + 4], ax
mov dx, word [esi + 4]
add dx, ax
mov word [edi + 6], dx
mov dword [edi + 0xc], esi
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
add esp, 0xd8
ret 8