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

Disassembly:
sub esp, 0xf0
mov eax, dword [esp + 0xf8]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp eax, ebp
mov edi, ecx
mov dword [esp + 0x4c], edi
jne 0x4f6687
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x108], eax
cmp dword [esp + 0x108], ebp
mov ecx, dword [esp + 0x110]
mov dword [esp + 0x5c], ecx
je 0x4f6bfb
cmp dword [esp + 0x10c], ebp
mov dword [esp + 0x30], ebp
jle 0x4f6bfb
push ebp
lea edx, [esp + 0x60]
push edx
mov ecx, edi
call fcn.004f6430
mov ebx, eax
cmp ebx, ebp
je 0x4f6bfb
test ebx, ebx
je 0x4f6b09
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x110]
and eax, 0xfffffff7
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x11c]
or eax, 2
test ecx, ecx
mov dword [ebx + 0x18], 0x3c23d70a
mov dword [ebx + 0x14], eax
je 0x4f66fc
or eax, 8
jmp 0x4f66ff
and eax, 0xfffffff7
mov esi, dword [esp + 0x104]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x164]
test eax, eax
jne 0x4f672f
lea edx, [esi + 0x108]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
jmp 0x4f673b
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004d2520
mov ecx, esi
call fcn.004d17f0
fld dword [eax]
fadd dword [eax + 0xc]
push 0x3f800000
fld dword [eax + 0x10]
push 0xbf800000
fadd dword [eax + 4]
fld dword [eax + 0x14]
fadd dword [eax + 8]
fstp dword [esp + 0xf8]
fxch st(1)
fmul dword [0x5da2f8]
fstp dword [esp + 0xfc]
fmul dword [0x5da2f8]
fld dword [esp + 0xf8]
fmul dword [0x5da2f8]
fld dword [esp + 0xfc]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fadd st(2)
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fadd st(1)
fstp dword [esp + 0x28]
fstp st(0)
fstp st(0)
fld dword [eax + 0xc]
fsub dword [eax]
fld dword [eax + 0x10]
fsub dword [eax + 4]
fld dword [eax + 0x14]
fsub dword [eax + 8]
fstp dword [esp + 0xe0]
fld dword [esp + 0x120]
fmul dword [0x5da2f8]
fstp dword [esp + 0x18]
fxch st(1)
fmul dword [esp + 0x18]
fstp dword [esp + 0x48]
fmul dword [esp + 0x18]
fstp dword [esp + 0x4c]
fld dword [esp + 0xe0]
fmul dword [esp + 0x18]
fstp dword [esp + 0x50]
call fcn.004bd540
fstp dword [esp + 0x18]
push 0x3f800000
push 0xbf800000
call fcn.004bd540
fstp dword [esp + 0x24]
push 0x3f800000
push 0xbf800000
call fcn.004bd540
fmul dword [esp + 0x60]
fld dword [esp + 0x58]
fmul dword [esp + 0x28]
fadd dword [esp + 0x30]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
fld dword [esp + 0x5c]
fmul dword [esp + 0x2c]
fadd dword [esp + 0x34]
fstp dword [esp + 0x40]
fld dword [esp + 0x38]
fadd st(1)
fstp dword [esp + 0x44]
fstp st(0)
fld dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
fsub dword [esp + 0x30]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0xf4]
fstp dword [esp + 0x84]
mov dword [esp + 0x50], edx
fld dword [esp + 0x40]
push ecx
fsub dword [esp + 0x38]
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x5c], eax
fstp dword [esp + 0x90]
fld dword [esp + 0x4c]
fsub dword [esp + 0x40]
fstp dword [esp + 0x94]
call fcn.004bf190
add esp, 0x20
lea ecx, [esp + 0x78]
call fcn.004f4ce0
mov eax, dword [esp + 0xe0]
push 0x40200000
push 0x3f800000
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], 0
mov dword [esp + 0xb4], 0x56
call fcn.004bd540
mov eax, dword [esp + 0x11c]
fmul dword [0x5da2d4]
add esp, 8
test eax, eax
fstp dword [esp + 0x98]
mov dword [esp + 0xc0], 0x3f800000
mov dword [esp + 0xc8], 0x3f800000
mov dword [esp + 0xc4], 0x3f800000
mov dword [esp + 0xcc], 0x3e800000
je 0x4f696e
fld dword [esp + 0x98]
mov eax, dword [esp + 0xac]
fadd st(0), st(0)
or eax, 0x4002
push 0x42700000
push 0x41f00000
fstp dword [esp + 0xa0]
mov dword [esp + 0xb4], eax
call fcn.004bd540
fstp dword [esp + 0xa8]
add esp, 8
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x7c], ecx
mov ecx, esi
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0xb4], 0x4f6190
mov dword [esp + 0xb0], 0x4f6280
call fcn.004d20d0
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [0x6800e4]
mov dword [esp + 0x7c], eax
mov dword [esp + 0xa8], 0x66
call fcn.004f54c0
mov esi, eax
test esi, esi
je 0x4f6af9
mov edi, dword [esi + 0x94]
test edi, edi
je 0x4f69f4
push 0x41a00000
push 0x41200000
call fcn.004bd540
fstp dword [edi + 0x334]
add esp, 8
mov edx, dword [esi + 4]
or edx, 0x20000
push 0xbb8
push 0x9c4
mov dword [esi + 4], edx
call fcn.004bd600
mov edx, dword [esp + 0x110]
mov ecx, dword [0x6800b4]
add esp, 8
push edx
mov ebp, eax
push 0x18
lea eax, [esp + 0x3c]
push eax
call fcn.004f1bd0
mov edi, eax
test edi, edi
je 0x4f6acd
push 0x43c80000
push 0
call fcn.004bd540
fstp dword [esp + 0x18]
push 0x43c80000
push 0
call fcn.004bd540
fstp dword [esp + 0x24]
push 0x43c80000
push 0
call fcn.004bd540
fstp dword [esp + 0x68]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x6c]
lea eax, [edi + 0x70]
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov eax, dword [edi + 0xb0]
or eax, 0x40
push 0x43480000
push 0x42480000
mov dword [edi + 0xb0], eax
call fcn.004bd540
fstp dword [esp + 0x1c]
add esp, 0x1c
mov ecx, edi
call fcn.004f0ef0
or dword [edi + 0xb0], 0x800
push edi
mov ecx, esi
call fcn.004f4d80
or dword [esi + 4], 1
mov edx, dword [esi + 0x50]
add edx, ebp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x54], edx
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4f6ae8
call fcn.004f3e60
mov edi, dword [esp + 0x4c]
mov dword [ebx + 4], esi
mov dword [esi + 0x88], ebx
mov ebp, ebx
jmp 0x4f6b00
and dword [ebx + 0x14], 0xfffffffd
dec dword [edi + 4]
lea ecx, [esp + 0x78]
call fcn.004031a0
mov ecx, dword [0x6800b4]
push 0
push 9
lea eax, [esp + 0x3c]
push eax
call fcn.004f1bd0
mov esi, eax
test esi, esi
je 0x4f6be3
push 0x41200000
push 0xc1200000
call fcn.004bd540
fstp dword [esp + 0x18]
push 0x41f00000
push 0
call fcn.004bd540
fstp dword [esp + 0x24]
push 0x41200000
push 0xc1200000
call fcn.004bd540
fstp dword [esp + 0x78]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x7c]
lea eax, [esi + 0x58]
mov dword [eax], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 4], edx
add esp, 0x18
mov dword [eax + 8], ecx
push 0x44480000
mov ecx, esi
mov dword [esi + 0x7c], 0x3f800000
call fcn.004f0ef0
push 0x44480000
push 0x42c80000
call fcn.004bd540
fstp dword [esp + 4]
add esp, 4
mov ecx, esi
call fcn.004f0f30
push 0x44bb8000
push 0x43fa0000
call fcn.004bd540
add esp, 8
call fcn.0058c3f0
push eax
mov ecx, esi
call fcn.004f0c30
or dword [esi + 0xb0], 0x20
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10c]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x4f66b0
inc dword [edi + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret 0x1c