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

Disassembly:
sub esp, 0x50
push ebp
push esi
push edi
mov edi, dword [esp + 0x60]
mov eax, dword [edi + 0x8c8]
xor ebp, ebp
test eax, eax
mov esi, ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 1
jne 0x4fb618
lea eax, [esi + 0x90]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
fld dword [esp + 0x40]
fadd dword [0x73f414]
lea eax, [edi + 0x90]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax]
fstp dword [esp + 0x40]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x4c], eax
fld dword [esp + 0x4c]
fadd dword [0x73f414]
mov eax, dword [esp + 0x64]
test eax, eax
mov dword [esp + 0x44], ecx
fstp dword [esp + 0x4c]
mov dword [esp + 0x48], edx
fld dword [esp + 0x38]
fsub dword [esp + 0x44]
fstp dword [esp + 0x14]
fld dword [esp + 0x3c]
fsub dword [esp + 0x48]
fstp dword [esp + 0x18]
fld dword [esp + 0x40]
fsub dword [esp + 0x4c]
fstp dword [esp + 0x1c]
jne 0x4fb592
mov al, byte [esi + 0x8ec]
test al, 0x10
jne 0x4fb592
test al, 8
je 0x4fb5e6
test al, 2
jne 0x4fb5e6
mov eax, dword [edi + 4]
push 0
push 0
push eax
mov ecx, esi
call fcn.004fb0f0
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fld st(1)
fmul st(2)
fcompp
fnstsw ax
fstp st(0)
test ah, 5
jnp 0x4fb618
mov eax, dword [edi + 4]
push eax
mov ecx, esi
call fcn.00517a20
test eax, eax
je 0x4fb5e6
mov cl, byte [eax + 4]
and cl, 0xc
cmp cl, 4
je 0x4fb618
mov ecx, esi
call fcn.004efd20
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fld st(1)
fmul st(2)
fcompp
fnstsw ax
fstp st(0)
test ah, 5
jp 0x4fb623
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x50
ret 8
push ebx
push 0
push 0
push 0x7f000000
push 0x7f000000
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x58]
push edx
mov ecx, esi
call fcn.004cb120
mov ecx, eax
call fcn.0050c330
push 0
push 0
push 0x7f000000
push 0x7f000000
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call fcn.004cb120
mov ecx, eax
call fcn.0050c330
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jne 0x4fb6b4
cmp eax, 0x7f000000
je 0x4fb749
cmp ecx, 0x7f000000
je 0x4fb749
mov dword [esp + 0x64], 0x3e23d70b
jmp 0x4fb7a6
cmp eax, 0x7f000000
je 0x4fb6ff
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
push eax
call fcn.004ae750
mov ebx, eax
test ebx, ebx
je 0x4fb6fb
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x10]
test eax, eax
je 0x4fb6fb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
add eax, 0x90
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x10], 0x7f000000
je 0x4fb749
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
push eax
call fcn.004ae750
mov ebx, eax
test ebx, ebx
je 0x4fb749
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x10]
test eax, eax
je 0x4fb749
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
add eax, 0x90
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], eax
fld dword [esp + 0x24]
fsub dword [esp + 0x30]
fld st(0)
fld dword [esp + 0x28]
fsub dword [esp + 0x34]
fst dword [esp + 0x1c]
fld dword [esp + 0x2c]
fsub dword [esp + 0x38]
fst dword [esp + 0x64]
fstp dword [esp + 0x20]
fxch st(2)
fstp dword [esp + 0x54]
fld dword [esp + 0x64]
fmul dword [esp + 0x20]
fxch st(2)
fmul dword [esp + 0x1c]
faddp st(2)
fld dword [esp + 0x54]
fmul st(1)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x64]
fstp st(0)
fld dword [esp + 0x64]
fcomp dword [0x73d700]
fnstsw ax
test ah, 0x41
jne 0x4fb7d8
mov ecx, esi
call fcn.004cb120
test byte [eax + 4], 1
jne 0x4fb873
mov ecx, esi
call fcn.004cb120
test byte [eax + 4], 2
jne 0x4fb873
fld dword [esp + 0x64]
fsqrt
call fcn.006fae8c
mov ebp, eax
imul ebp, ebp, 0xfffffffb
mov eax, dword [esi]
mov ebx, dword [edi + 0xa74]
push 0
mov ecx, esi
call dword [eax + 0x10]
push eax
push 2
mov ecx, ebx
call fcn.005aa570
test al, al
je 0x4fb9c8
mov al, byte [edi + 0x4d1]
test al, al
je 0x4fb9c8
cmp al, 1
jne 0x4fb832
mov edx, dword [esi]
mov ebx, dword [edi + 0xa74]
push 0
mov ecx, esi
call dword [edx + 0x10]
push eax
push 2
mov ecx, ebx
call fcn.005aa570
movzx ecx, byte [edi + 0x91d]
movsx eax, al
sub ebp, eax
sub ebp, ecx
mov ecx, esi
call fcn.004edae0
cmp al, 1
je 0x4fb8ce
call fcn.004edae0
cmp al, 2
je 0x4fb8ce
mov edx, dword [edi]
mov ebx, dword [esi + 0xa74]
push 0
mov ecx, edi
call dword [edx + 0x10]
push eax
push 3
mov ecx, ebx
call fcn.005aa570
movsx eax, al
cdq
sub eax, edx
sar eax, 1
add ebp, eax
jmp 0x4fb8ec
mov ecx, esi
call fcn.004cb120
mov eax, dword [eax + 0x1b0]
mov ecx, dword [esi + 0x90]
mov dword [eax + 0x74], ecx
fld dword [esi + 0x94]
fstp dword [eax + 0x78]
mov edx, dword [edi + 0x90]
mov dword [eax + 0x5c], edx
fld dword [edi + 0x94]
fstp dword [eax + 0x60]
push eax
mov ecx, esi
call fcn.004cb120
mov ecx, eax
call fcn.006054e0
cmp eax, 1
jne 0x4fb8c2
mov ebp, 0xfffffffe
jmp 0x4fb7d8
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x50
ret 8
mov eax, dword [edi]
mov ebx, dword [esi + 0xa74]
push 0
mov ecx, edi
call dword [eax + 0x10]
push eax
push 3
mov ecx, ebx
call fcn.005aa570
movsx ecx, al
add ebp, ecx
mov bl, byte [esi + 0x91f]
mov ecx, esi
call fcn.004cb120
mov eax, dword [eax + 0x18c]
movzx edx, bl
add eax, edx
mov ecx, esi
add ebp, eax
call fcn.004efb20
mov eax, dword [esi + 0x4e0]
test eax, eax
je 0x4fb91a
sub ebp, 0xa
mov eax, dword [edi + 0xd4]
push eax
mov ecx, edi
call fcn.004cae60
test eax, eax
je 0x4fb92f
sub ebp, 5
mov eax, dword [esi + 0xd4]
push eax
mov ecx, esi
call fcn.004cae60
test eax, eax
je 0x4fb944
add ebp, 5
lea eax, [edi + 0x90]
push eax
lea eax, [esi + 0x90]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.00423bc0
push eax
call fcn.004ab100
fmul dword [0x7471ac]
add esp, 0x10
call fcn.006fae8c
add ebp, eax
mov eax, dword [edi + 0x4f8]
cmp eax, 1
jne 0x4fb982
sub ebp, 8
jmp 0x4fb99e
cmp eax, 2
jne 0x4fb98c
sub ebp, 4
jmp 0x4fb99e
cmp eax, 4
jne 0x4fb996
add ebp, 4
jmp 0x4fb99e
cmp eax, 5
jne 0x4fb99e
add ebp, 8
mov esi, dword [esi + 0xa74]
push edi
mov ecx, esi
call fcn.0063e7c0
add ebp, eax
test ebp, ebp
jg 0x4fb9ba
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x50
ret 8
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x50
ret 8