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

Disassembly:
mov eax, dword [0x11561b0]
sub esp, 0x4c
inc eax
lea ecx, [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x5c]
mov dword [0x11561b0], eax
push esi
lea eax, [esp + 0x24]
push edi
push eax
push ecx
push 0x1156024
push 0x1156150
push ebx
call fcn.00448790
add esp, 0x14
xor ecx, ecx
lea edx, [esp + 0x28]
fld dword [edx]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x4789e7
fld dword [esp + 0x34]
fchs
fcomp dword [edx]
fnstsw ax
test ah, 1
je 0x4789e7
inc ecx
add edx, 4
cmp ecx, 3
jl 0x4787e8
lea edx, [esp + 0x18]
lea eax, [esp + 0x48]
push edx
push eax
lea ecx, [esp + 0x30]
push 0x1155ee4
push ecx
call fcn.00448810
fld dword [esp + 0x28]
fcomp dword [0x4d7378]
add esp, 0x10
fnstsw ax
test ah, 1
jne 0x4789e7
fild dword [0x1156014]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x4789e7
fld dword [esp + 0x1c]
fcomp dword [0x4d7378]
fnstsw ax
test ah, 1
jne 0x4789e7
fild dword [0x1156018]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x4789e7
mov edi, dword [0x1022a30]
mov eax, dword [esp + 0x74]
mov esi, edi
test esi, esi
je 0x4788bc
mov ecx, dword [0x1155fe8]
mov edx, dword [0x1155ff0]
cmp dword [esi + 0x44], eax
jne 0x4788b0
cmp dword [esi + 0xc], edx
jne 0x4788b0
cmp dword [esi + 8], ecx
je 0x4788b8
mov esi, dword [esi]
test esi, esi
jne 0x4788a1
jmp 0x4788bc
test esi, esi
jne 0x4788fd
mov esi, dword [0x1022a34]
test esi, esi
je 0x4789e7
mov edx, dword [esi]
mov ecx, dword [esp + 0x5c]
mov dword [0x1022a34], edx
mov dword [esi], edi
mov dword [0x1022a30], esi
mov dword [esi + 0x10], ecx
mov edx, dword [0x1155ff0]
mov dword [esi + 0xc], edx
mov ecx, dword [0x1155fe8]
mov dword [esi + 8], ecx
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x44], eax
mov edx, dword [esp + 0x78]
mov ecx, dword [esi + 4]
mov dword [esi + 0x1c], edx
mov eax, dword [0x1155ff4]
dec eax
cmp ecx, eax
je 0x478927
mov dword [esi + 0x20], 0
mov ecx, dword [0x1155d8c]
add ecx, 0xfffff830
mov dword [esi + 0x18], ecx
mov eax, dword [esp + 0x60]
mov edx, dword [0x1155ff4]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x70]
mov dword [esi + 4], edx
mov ecx, dword [eax]
mov dword [esi + 0x34], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x6c]
mov dword [esi + 0x38], edx
mov eax, dword [eax + 8]
mov dword [esi + 0x40], ecx
test edi, edi
mov dword [esi + 0x3c], eax
je 0x4789bc
fld dword [0x1155ee4]
fsub dword [ebx]
lea edx, [esp + 0xc]
push edx
fstp dword [esp + 0x10]
fld dword [0x1155ee8]
fsub dword [ebx + 4]
fstp dword [esp + 0x14]
fld dword [0x1155eec]
fsub dword [ebx + 8]
fstp dword [esp + 0x18]
call fcn.004283c0
fld dword [esp + 0x18]
fmul dword [edi + 8]
fld dword [esp + 0x14]
fmul dword [edi + 4]
add esp, 4
faddp st(1)
fld dword [esp + 0xc]
fmul dword [edi]
faddp st(1)
fld st(0)
fmul dword [esi + 0x34]
fstp dword [esi + 0x34]
fld st(0)
fmul dword [esi + 0x38]
fstp dword [esi + 0x38]
fmul dword [esi + 0x3c]
fstp dword [esi + 0x3c]
fild dword [0x115600c]
fadd dword [esp + 0x18]
call fcn.004c2730
mov dword [esi + 0x28], eax
fild dword [0x1156010]
fadd dword [esp + 0x1c]
call fcn.004c2730
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x30], eax
pop edi
pop esi
pop ebx
add esp, 0x4c
ret