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

Disassembly:
sub esp, 0x3f8
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x14]
test al, 8
push edi
je 0x4cc485
mov edi, dword [esp + 0x404]
test edi, edi
je 0x4cc485
test al, 4
je 0x4cc485
mov ecx, dword [edi + 4]
test ecx, ecx
mov byte [esp + 0xa], 0
mov byte [esp + 0xb], 0
mov al, 1
je 0x4cbf53
mov byte [esp + 0xa], al
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4cbf60
mov byte [esp + 0xb], al
jmp 0x4cbf6c
mov al, byte [esp + 0xa]
test al, al
je 0x4cc485
push ebx
push esi
xor esi, esi
mov dword [esp + 0x14], esi
mov al, byte [esp + 0x12]
test al, al
je 0x4cc1fb
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp eax, 3
jne 0x4cc1fb
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + esi*4]
fld dword [ecx + 0x30]
fadd dword [eax + 0x30]
add ecx, 0x30
fld dword [ecx + 4]
add eax, 0x30
fadd dword [eax + 4]
fstp dword [esp + 0x78]
fld dword [ecx + 8]
lea ecx, [esp + 0x1c]
fadd dword [eax + 8]
push ecx
push 0x110
push esi
fstp dword [esp + 0x88]
mov ecx, ebp
fadd dword [0x746470]
fstp dword [esp + 0x44]
fld dword [esp + 0x84]
fsub dword [0x746470]
fstp dword [esp + 0x48]
fld dword [esp + 0x88]
fstp dword [esp + 0x4c]
call fcn.004ca9e0
fld dword [esp + 0x38]
fadd dword [esp + 0x1c]
xor ebx, ebx
fld dword [esp + 0x20]
mov dword [esp + 0x18], ebx
fadd dword [esp + 0x3c]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fadd dword [esp + 0x40]
fstp dword [esp + 0x24]
fstp dword [esp + 0x34]
test ebx, ebx
fild dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov eax, edx
fmul dword [0x7475e4]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x64], eax
fadd dword [esp + 0x34]
fst dword [esp + 0x1c]
fld st(0)
fsub dword [0x747638]
fstp dword [esp + 0x44]
fld dword [esp + 0x20]
fadd dword [0x747638]
fst dword [esp + 0x48]
fxch st(1)
fstp dword [esp + 0x5c]
fstp dword [esp + 0x60]
jne 0x4cc13b
and esi, 0x80000003
jns 0x4cc07b
dec esi
or esi, 0xfffffffc
inc esi
jne 0x4cc13b
mov esi, dword [edi]
test esi, esi
je 0x4cc0c0
lea ecx, [esp + 0x228]
call fcn.0050f440
push 0
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x230]
push edx
mov ecx, esi
call fcn.004cc750
test al, al
je 0x4cc0c0
lea eax, [esp + 0x228]
push eax
mov ecx, esi
call fcn.004ccfb0
test eax, eax
jne 0x4cc104
mov esi, dword [edi + 4]
lea ecx, [esp + 0x368]
call fcn.0050f440
push 0
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x370]
push edx
mov ecx, esi
call fcn.004cc750
test al, al
je 0x4cc1e9
lea eax, [esp + 0x368]
push eax
mov ecx, esi
call fcn.004ccfb0
test eax, eax
je 0x4cc1e9
lea ecx, [esp + 0x188]
call fcn.0050f440
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x190]
push edx
mov ecx, ebp
call fcn.004cc750
test al, al
je 0x4cc1e9
push edi
lea eax, [esp + 0x18c]
jmp 0x4cc1e1
mov esi, dword [edi + 4]
lea ecx, [esp + 0x2c8]
call fcn.0050f440
push 0
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x2d0]
push edx
mov ecx, esi
call fcn.004cc750
test al, al
je 0x4cc177
lea eax, [esp + 0x2c8]
push eax
mov ecx, esi
call fcn.004ccfb0
test eax, eax
jne 0x4cc1b3
mov esi, dword [edi + 4]
lea ecx, [esp + 0x98]
call fcn.0050f440
push 0
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0xa0]
push edx
mov ecx, esi
call fcn.004cc750
test al, al
je 0x4cc1e9
lea eax, [esp + 0x98]
push eax
mov ecx, esi
call fcn.004ccfb0
test eax, eax
je 0x4cc1e9
lea ecx, [esp + 0xe8]
call fcn.0050f440
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xf0]
push edx
mov ecx, ebp
call fcn.004cc750
test al, al
je 0x4cc1e9
push edi
lea eax, [esp + 0xec]
push eax
mov ecx, ebp
call fcn.004cd460
mov esi, dword [esp + 0x14]
inc ebx
cmp ebx, 4
mov dword [esp + 0x18], ebx
jl 0x4cc022
mov al, byte [esp + 0x13]
test al, al
je 0x4cc475
mov ecx, esi
and ecx, 0x80000003
jns 0x4cc216
dec ecx
or ecx, 0xfffffffc
inc ecx
jne 0x4cc475
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + esi*4]
fld dword [ecx + 0x30]
fadd dword [eax + 0x30]
add ecx, 0x30
fld dword [ecx + 4]
add eax, 0x30
fadd dword [eax + 4]
fld dword [ecx + 8]
fadd dword [eax + 8]
fstp dword [esp + 0x94]
mov eax, dword [esp + 0x94]
fsub dword [0x746470]
push eax
push ecx
fstp dword [esp]
push ecx
lea ecx, [esp + 0x8c]
fadd dword [0x746470]
fstp dword [esp]
call fcn.004057e0
lea ecx, [esp + 0x28]
push ecx
push 0x110
push esi
mov ecx, ebp
call fcn.004ca9e0
fld dword [esp + 0x80]
fadd dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x18], ebx
fstp dword [esp + 0x28]
fld dword [esp + 0x84]
fadd dword [esp + 0x2c]
fld dword [esp + 0x30]
fadd dword [esp + 0x88]
fstp dword [esp + 0x30]
fstp dword [esp + 0x34]
test ebx, ebx
fild dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov eax, edx
fmul dword [0x7475e4]
mov dword [esp + 0x58], edx
mov dword [esp + 0x70], eax
fsubr dword [esp + 0x34]
fst dword [esp + 0x2c]
fld dword [esp + 0x28]
fsub dword [0x747638]
fst dword [esp + 0x50]
fld st(1)
fadd dword [0x747638]
fstp dword [esp + 0x54]
fxch st(1)
fstp dword [esp + 0x6c]
fstp dword [esp + 0x68]
jne 0x4cc3de
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp eax, 3
jne 0x4cc3de
mov al, byte [esp + 0x12]
test al, al
jne 0x4cc467
mov esi, dword [edi]
test esi, esi
je 0x4cc35b
lea ecx, [esp + 0x138]
call fcn.0050f440
push ebx
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x140]
push edx
mov ecx, esi
call fcn.004cc750
test al, al
je 0x4cc35b
lea eax, [esp + 0x138]
push eax
mov ecx, esi
call fcn.004ccfb0
test eax, eax
jne 0x4cc39f
mov esi, dword [edi + 0xc]
lea ecx, [esp + 0x1d8]
call fcn.0050f440
push 0
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x1e0]
push edx
mov ecx, esi
call fcn.004cc750
test al, al
je 0x4cc463
lea eax, [esp + 0x1d8]
push eax
mov ecx, esi
call fcn.004ccfb0
test eax, eax
je 0x4cc463
lea ecx, [esp + 0x278]
call fcn.0050f440
push 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x280]
push edx
mov ecx, ebp
call fcn.004cc750
test al, al
je 0x4cc463
push edi
lea eax, [esp + 0x27c]
push eax
mov ecx, ebp
call fcn.004cd460
jmp 0x4cc463
mov esi, dword [edi + 0xc]
lea ecx, [esp + 0x318]
call fcn.0050f440
push 0
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x320]
push edx
mov ecx, esi
call fcn.004cc750
test al, al
je 0x4cc41a
lea eax, [esp + 0x318]
push eax
mov ecx, esi
call fcn.004ccfb0
test eax, eax
jne 0x4cc456
mov esi, dword [edi + 0xc]
lea ecx, [esp + 0x3b8]
call fcn.0050f440
push 0
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x3c0]
push edx
mov ecx, esi
call fcn.004cc750
test al, al
je 0x4cc463
lea eax, [esp + 0x3b8]
push eax
mov ecx, esi
call fcn.004ccfb0
test eax, eax
je 0x4cc463
push edi
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.004cd420
mov esi, dword [esp + 0x14]
inc ebx
cmp ebx, 4
mov dword [esp + 0x18], ebx
jl 0x4cc2b1
inc esi
cmp esi, 0x10
mov dword [esp + 0x14], esi
jl 0x4cbf74
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x3f8
ret 4