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

Disassembly:
sub esp, 0x18
cmp dword [esp + 0x24], 0
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x28]
push edi
movzx edx, byte [ebp + 1]
mov dword [esp + 0x10], edx
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx + 0x10]
lea edi, [eax + edx*8]
mov eax, dword [esi + 0x64]
mov dword [esp + 0x14], edi
lea ebx, [eax + edx*4]
je 0x4cbcda
cmp dword [esi + 0x910], ebp
jne 0x4cbca6
movzx eax, word [ebx]
mov ecx, eax
cmp ax, word [esi + 0x914]
jne 0x4cbca6
movzx eax, byte [esi + 0x91c]
movzx ebp, word [esi + 0x918]
mov dword [esp + 0x2c], eax
or eax, 0x2900
mov word [esi + 0x7c], ax
mov ax, word [esi + 0x91a]
mov word [esi + 0x78], cx
mov ecx, esi
mov dword [esp + 0x34], ebp
mov word [esi + 0x7a], ax
call fcn.004e3930
mov dword [ebx], eax
mov dword [ebx + 0xc], eax
movsd xmm0, qword [edi + 0x10]
movaps xmm1, xmm0
addsd xmm1, qword [edi]
jmp 0x4cbdcd
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
call fcn.004cc060
movzx eax, byte [esp + 0x34]
add esp, 0x10
movsd xmm0, qword [edi + 0x10]
mov dword [esp + 0x2c], eax
movaps xmm1, xmm0
movzx eax, word [esp + 0x20]
addsd xmm1, qword [edi]
mov dword [esp + 0x34], eax
jmp 0x4cbdcd
mov edx, edi
call fcn.004a1d80
mov eax, dword [ebx]
and eax, 0x1f000000
cmp eax, 0x13000000
je 0x4cbcfa
mov ebp, 0xe
mov dword [esp + 0x2c], ebp
jmp 0x4cbd0a
push edi
push esi
call fcn.004e5ce0
add esp, 8
mov dword [esp + 0x2c], eax
mov ebp, eax
xor edi, edi
nop dword [eax]
mov ecx, dword [ebx + edi*4]
test ecx, ecx
jne 0x4cbd2a
mov eax, dword [esp + 0x10]
add eax, edi
push eax
push esi
call fcn.004cd910
mov ecx, dword [ebx + edi*4]
add esp, 8
mov eax, ecx
and eax, 0x1f000000
cmp eax, 0x4000000
jne 0x4cbd4f
mov word [esi + 0x78], cx
mov ecx, esi
mov dword [esi + 0x7a], 0x5e8e0000
call fcn.004e3930
mov ecx, eax
mov dword [ebx + edi*4], eax
mov eax, ecx
cmp ebp, 0x13
jne 0x4cbd6d
shr eax, 0x18
and eax, 0x1f
sub eax, 0xf
cmp eax, 4
jbe 0x4cbd8e
mov dword [esi + 0x7a], 0x5b93326e
jmp 0x4cbd80
and eax, 0x1f000000
cmp eax, 0xe000000
je 0x4cbd8e
mov dword [esi + 0x7a], 0x5b0e01d3
mov word [esi + 0x78], cx
mov ecx, esi
call fcn.004e3930
mov dword [ebx + edi*4], eax
inc edi
cmp edi, 2
jbe 0x4cbd10
mov edi, dword [esp + 0x14]
mov eax, dword [ebx]
mov ebp, dword [ebx + 4]
push 1
push dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x14]
not eax
mov dword [esp + 0x3c], ebp
push ebp
shr eax, 0x1f
push eax
push dword [esp + 0x3c]
push esi
call fcn.004cbee0
movsd xmm1, qword [edi]
add esp, 0x18
movsd xmm0, qword [edi + 0x10]
cmp dword [edi + 0x14], 0
movsd xmm2, qword [edi + 8]
jl 0x4cbe02
comisd xmm2, xmm1
jb 0x4cbdfb
addsd xmm0, xmm0
xor ecx, ecx
mov ebp, 0x280
addsd xmm0, xmm1
comisd xmm0, xmm2
setbe cl
inc ecx
mov dword [esp + 0x14], ecx
jmp 0x4cbe23
mov ebp, 0x380
jmp 0x4cbe44
comisd xmm1, xmm2
jb 0x4cbe3f
addsd xmm0, xmm0
xor eax, eax
mov ebp, 0x180
addsd xmm0, xmm1
comisd xmm2, xmm0
setbe al
inc eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov dword [esi + 0x6c], eax
movzx eax, word [edx + 2]
lea ecx, [eax*4 - 0x1fffc]
jmp 0x4cbe59
mov ebp, 0x80
mov eax, dword [esp + 0x10]
xor edi, edi
mov edx, dword [esp + 0x30]
add eax, 4
mov dword [esi + 0x6c], eax
mov ecx, 4
lea eax, [edx + 4]
mov dword [esp + 0x14], eax
lea eax, [ecx + edx]
push esi
mov dword [esi + 0x58], eax
call fcn.004c6220
movzx eax, word [ebx]
add esp, 4
or ebp, dword [esp + 0x2c]
mov ecx, esi
mov word [esi + 0x78], ax
mov eax, dword [esp + 0x34]
mov word [esi + 0x7c], bp
mov word [esi + 0x7a], ax
call fcn.004e3930
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x4cbeb9
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x6c], eax
movzx eax, word [ecx + 2]
add eax, 0xffff8001
lea eax, [ecx + eax*4]
mov dword [esi + 0x58], eax
mov eax, edi
pop edi
mov byte [esi + 0x75], 1
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
add eax, 4
mov dword [esi + 0x6c], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x58], eax
mov eax, edi
pop edi
mov byte [esi + 0x75], 1
pop esi
pop ebp
pop ebx
add esp, 0x18
ret