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

Disassembly:
sub esp, 0x20
mov ecx, dword [esp + 0x28]
mov eax, 1
push ebx
push ebp
push esi
add ecx, 6
shl eax, cl
xor ecx, ecx
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 0x78]
mov esi, dword [edi + 0x7c]
add eax, 0xc
lea esi, [eax + esi*4]
mov eax, dword [esp + 0x3c]
mov dword [eax], 0
test dword [edi + 0x80], 0xfffffffc
jbe 0x4cbc9a
mov eax, 2
mov dword [esp + 0x34], eax
xor edx, edx
mov dword [esp + 0x10], edx
cmp dword [edi + 0x7c], edx
jbe 0x4cbc74
mov ebp, dword [esi]
test ebp, ebp
je 0x4cbc5b
mov ecx, dword [edi + 0x8c]
imul ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x74]
add ecx, edx
lea eax, [eax + ecx*4]
mov dword [esp + 0x20], eax
test ebp, 0x200010
jne 0x4cb83b
and ebp, 0x1ef
je 0x4cb83b
mov eax, dword [eax]
mov ecx, dword [edi + 0x6c]
cdq
xor eax, edx
sub eax, edx
and eax, dword [esp + 0x14]
neg eax
sbb ebx, ebx
movzx eax, byte [ecx + ebp]
add eax, 7
neg ebx
cmp byte [esp + 0x40], 1
push ebx
push edi
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4cb72b
call fcn.004cd730
jmp 0x4cb730
call fcn.004cd9d0
add esp, 8
test ebx, ebx
je 0x4cb831
mov ebx, dword [esi - 4]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
and eax, 0x80000
shr ebx, 2
and ebx, 0x20000
or ebx, eax
mov eax, ecx
and eax, 0x400000
shr ebx, 1
or ebx, eax
mov eax, ecx
and eax, 0x40000
shr ebx, 2
or ebx, eax
and ecx, 0xaa
mov eax, dword [esp + 0x20]
shr ebx, 0xe
or ebx, ecx
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
cdq
movzx ebp, byte [ebx + 0x54b188]
sets cl
xor eax, edx
mov dword [esp + 0x1c], ecx
sub eax, edx
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4cb7af
mov ecx, edx
shr eax, cl
mov ecx, dword [esp + 0x1c]
and eax, 0x7f
movzx eax, word [eax*2 + 0x54b388]
jmp 0x4cb7ba
and eax, 0x7f
movzx eax, word [eax*2 + 0x54b488]
mov edx, dword [esp + 0x3c]
cwde
add dword [edx], eax
lea eax, [edi + 0x1c]
cmp byte [esp + 0x40], 1
lea eax, [eax + ebp*4]
mov dword [edi + 0x68], eax
jne 0x4cb7da
push ecx
push edi
call fcn.004cd730
jmp 0x4cb7ea
movzx eax, byte [ebx + 0x54b288]
xor eax, ecx
push eax
push edi
call fcn.004cd9d0
mov edx, dword [esp + 0x24]
add esp, 8
mov ecx, dword [edi + 0x7c]
mov eax, edx
or dword [esi - 4], 0x20
shl eax, 0x13
or eax, 0x10
or dword [esi], eax
or dword [esi + 4], 8
test byte [esp + 0x44], 8
jne 0x4cb831
lea eax, [ecx*4 + 8]
shl edx, 0x1f
mov ecx, esi
or edx, 0x10000
sub ecx, eax
or dword [ecx], edx
or dword [ecx - 4], 0x20000
or dword [ecx + 4], 0x8000
or dword [esi], 0x200000
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov eax, dword [edi + 0x74]
dec ecx
imul ecx, dword [edi + 0x8c]
add ecx, edx
lea ebp, [eax + ecx*4]
mov ecx, dword [esi]
test ecx, 0x1000080
jne 0x4cb991
test ecx, 0xf78
je 0x4cb991
mov eax, dword [ebp]
cdq
xor eax, edx
sub eax, edx
and eax, dword [esp + 0x14]
neg eax
sbb ebx, ebx
mov eax, dword [edi + 0x6c]
shr ecx, 3
neg ebx
and ecx, 0x1ef
push ebx
push edi
movzx eax, byte [ecx + eax]
add eax, 7
cmp byte [esp + 0x48], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4cb8a4
call fcn.004cd730
jmp 0x4cb8a9
call fcn.004cd9d0
add esp, 8
test ebx, ebx
je 0x4cb987
mov ebx, dword [esi - 4]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
and eax, 0x400000
shr ebx, 2
and ebx, 0x100000
or ebx, eax
mov eax, ecx
and eax, 0x2000000
shr ebx, 1
or ebx, eax
mov eax, ecx
and eax, 0x80000
shr ebx, 4
or ebx, eax
and ecx, 0x550
shr ebx, 0xc
or ebx, ecx
xor ecx, ecx
shr ebx, 3
movzx eax, byte [ebx + 0x54b188]
mov dword [esp + 0x20], eax
mov eax, dword [ebp]
test eax, eax
cdq
sets cl
xor eax, edx
sub eax, edx
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4cb92c
mov ecx, edx
shr eax, cl
mov ecx, dword [esp + 0x1c]
and eax, 0x7f
movzx eax, word [eax*2 + 0x54b388]
jmp 0x4cb937
and eax, 0x7f
movzx eax, word [eax*2 + 0x54b488]
mov edx, dword [esp + 0x3c]
cwde
add dword [edx], eax
mov eax, dword [esp + 0x20]
add eax, 7
cmp byte [esp + 0x40], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4cb95b
push ecx
push edi
call fcn.004cd730
jmp 0x4cb96b
movzx eax, byte [ebx + 0x54b288]
xor eax, ecx
push eax
push edi
call fcn.004cd9d0
mov eax, dword [esp + 0x24]
add esp, 8
or dword [esi - 4], 0x100
shl eax, 0x16
or eax, 0x80
or dword [esi], eax
or dword [esi + 4], 0x40
or dword [esi], 0x1000000
mov edx, dword [esp + 0x10]
mov ecx, dword [edi + 0x8c]
imul ecx, dword [esp + 0x34]
mov eax, dword [edi + 0x74]
add ecx, edx
lea ebp, [eax + ecx*4]
mov ecx, dword [esi]
test ecx, 0x8000400
jne 0x4cbae9
test ecx, 0x7bc0
je 0x4cbae9
mov eax, dword [ebp]
cdq
xor eax, edx
sub eax, edx
and eax, dword [esp + 0x14]
neg eax
sbb ebx, ebx
mov eax, dword [edi + 0x6c]
shr ecx, 6
neg ebx
and ecx, 0x1ef
push ebx
push edi
movzx eax, byte [ecx + eax]
add eax, 7
cmp byte [esp + 0x48], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4cb9f9
call fcn.004cd730
jmp 0x4cb9fe
call fcn.004cd9d0
add esp, 8
test ebx, ebx
je 0x4cbadf
mov ebx, dword [esi - 4]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
and eax, 0x2000000
shr ebx, 2
and ebx, 0x800000
or ebx, eax
mov eax, ecx
and eax, 0x10000000
shr ebx, 1
or ebx, eax
mov eax, ecx
and eax, 0x400000
shr ebx, 4
or ebx, eax
and ecx, 0x2a80
shr ebx, 0xc
or ebx, ecx
xor ecx, ecx
shr ebx, 6
movzx eax, byte [ebx + 0x54b188]
mov dword [esp + 0x20], eax
mov eax, dword [ebp]
test eax, eax
cdq
sets cl
xor eax, edx
sub eax, edx
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4cba81
mov ecx, edx
shr eax, cl
mov ecx, dword [esp + 0x1c]
and eax, 0x7f
movzx eax, word [eax*2 + 0x54b388]
jmp 0x4cba8c
and eax, 0x7f
movzx eax, word [eax*2 + 0x54b488]
mov edx, dword [esp + 0x3c]
cwde
add dword [edx], eax
mov eax, dword [esp + 0x20]
add eax, 7
cmp byte [esp + 0x40], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4cbab0
push ecx
push edi
call fcn.004cd730
jmp 0x4cbac0
movzx eax, byte [ebx + 0x54b288]
xor eax, ecx
push eax
push edi
call fcn.004cd9d0
mov eax, dword [esp + 0x24]
add esp, 8
or dword [esi - 4], 0x800
shl eax, 0x19
or eax, 0x400
or dword [esi], eax
or dword [esi + 4], 0x200
or dword [esi], 0x8000000
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov eax, dword [edi + 0x74]
inc ecx
imul ecx, dword [edi + 0x8c]
add ecx, edx
lea ebp, [eax + ecx*4]
mov ecx, dword [esi]
test ecx, 0x40002000
jne 0x4cbc5b
test ecx, 0x3de00
je 0x4cbc5b
mov eax, dword [ebp]
cdq
xor eax, edx
sub eax, edx
and eax, dword [esp + 0x14]
neg eax
sbb ebx, ebx
mov eax, dword [edi + 0x6c]
shr ecx, 9
neg ebx
and ecx, 0x1ef
push ebx
push edi
movzx eax, byte [ecx + eax]
add eax, 7
cmp byte [esp + 0x48], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4cbb52
call fcn.004cd730
jmp 0x4cbb57
call fcn.004cd9d0
add esp, 8
test ebx, ebx
je 0x4cbc51
mov ebx, dword [esi - 4]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
and eax, 0x10000000
shr ebx, 2
and ebx, 0x4000000
or ebx, eax
mov eax, ecx
and eax, 0x81ffffff
shr ebx, 1
or ebx, eax
mov eax, ecx
and eax, 0x2000000
shr ebx, 4
or ebx, eax
and ecx, 0x15400
shr ebx, 0xc
or ebx, ecx
xor ecx, ecx
shr ebx, 9
movzx eax, byte [ebx + 0x54b188]
mov dword [esp + 0x20], eax
mov eax, dword [ebp]
test eax, eax
cdq
sets cl
xor eax, edx
sub eax, edx
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4cbbda
mov ecx, edx
shr eax, cl
mov ecx, dword [esp + 0x1c]
and eax, 0x7f
movzx eax, word [eax*2 + 0x54b388]
jmp 0x4cbbe5
and eax, 0x7f
movzx eax, word [eax*2 + 0x54b488]
mov edx, dword [esp + 0x3c]
cwde
add dword [edx], eax
mov eax, dword [esp + 0x20]
add eax, 7
cmp byte [esp + 0x40], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4cbc09
push ecx
push edi
call fcn.004cd730
jmp 0x4cbc19
movzx eax, byte [ebx + 0x54b288]
xor eax, ecx
push eax
push edi
call fcn.004cd9d0
mov ecx, dword [edi + 0x7c]
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, edx
or dword [esi - 4], 0x4000
shl eax, 0x1c
or eax, 0x2000
shl edx, 0x12
or dword [esi], eax
or edx, 2
or dword [esi + 4], 0x1000
or dword [esi + ecx*4 + 8], edx
or dword [esi + ecx*4 + 4], 4
or dword [esi + ecx*4 + 0xc], 1
or dword [esi], 0x40000000
mov edx, dword [esp + 0x10]
inc edx
add esi, 4
mov dword [esp + 0x10], edx
cmp edx, dword [edi + 0x7c]
jb 0x4cb6c1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
add eax, 4
add ecx, 4
mov dword [esp + 0x34], eax
add esi, 8
mov eax, dword [edi + 0x80]
and eax, 0xfffffffc
mov dword [esp + 0x18], ecx
cmp ecx, eax
mov eax, dword [esp + 0x34]
jb 0x4cb6b2
mov eax, dword [edi + 0x80]
cmp ecx, eax
jae 0x4cbef6
xor ebx, ebx
mov dword [esp + 0x10], ebx
cmp dword [edi + 0x7c], ebx
jbe 0x4cbef6
cmp dword [esi], 0
je 0x4cbee5
mov edx, ecx
mov dword [esp + 0x20], edx
cmp ecx, eax
jae 0x4cbee5
mov dword [esp + 0x34], 0
xor ebp, ebp
cmp edx, ecx
jne 0x4cbceb
test byte [esp + 0x44], 8
mov dword [esp + 0x1c], 1
jne 0x4cbcf3
mov dword [esp + 0x1c], 0
mov ecx, dword [edi + 0x8c]
mov eax, dword [edi + 0x74]
imul ecx, edx
mov edx, dword [esi]
mov dword [esp + 0x24], edx
add ecx, ebx
lea ebx, [eax + ecx*4]
mov eax, 0x200010
mov ecx, ebp
mov dword [esp + 0x28], ebx
shl eax, cl
test edx, eax
jne 0x4cbebf
mov eax, 0x1ef
shl eax, cl
test edx, eax
je 0x4cbebf
mov eax, dword [ebx]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x24]
and eax, dword [esp + 0x14]
neg eax
sbb ebx, ebx
mov eax, dword [edi + 0x6c]
shr edx, cl
neg ebx
and edx, 0x1ef
push ebx
push edi
movzx eax, byte [edx + eax]
add eax, 7
cmp byte [esp + 0x48], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4cbd6b
call fcn.004cd730
jmp 0x4cbd70
call fcn.004cd9d0
add esp, 8
test ebx, ebx
je 0x4cbeb4
mov edx, dword [esi - 4]
lea ecx, [ebp + 0x13]
mov eax, dword [esi + 4]
mov ebx, dword [esi]
shr edx, cl
lea ecx, [ebp + 0x11]
shr eax, cl
and edx, 1
and eax, 4
mov ecx, ebp
or edx, eax
mov eax, ebx
shr eax, cl
and eax, 0xaa
or edx, eax
cmp dword [esp + 0x34], 0
mov eax, ebx
jne 0x4cbdb0
shr eax, 0xe
jmp 0x4cbdb5
lea ecx, [ebp + 0xc]
shr eax, cl
and eax, 0x10
lea ecx, [ebp + 0x10]
or edx, eax
shr ebx, cl
mov ecx, dword [esp + 0x38]
and ebx, 0x40
or ebx, edx
mov dword [esp + 0x2c], ebx
movzx eax, byte [ebx + 0x54b188]
xor ebx, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
test eax, eax
cdq
sets bl
xor eax, edx
sub eax, edx
test ecx, ecx
je 0x4cbdfc
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x54b388]
jmp 0x4cbe07
and eax, 0x7f
movzx eax, word [eax*2 + 0x54b488]
mov ecx, dword [esp + 0x3c]
cwde
add dword [ecx], eax
mov eax, dword [esp + 0x24]
add eax, 7
cmp byte [esp + 0x40], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4cbe2b
push ebx
push edi
call fcn.004cd730
jmp 0x4cbe3f
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + 0x54b288]
xor eax, ebx
push eax
push edi
call fcn.004cd9d0
mov edx, dword [edi + 0x7c]
mov ecx, ebp
mov eax, 0x20
add esp, 8
shl eax, cl
or dword [esi - 4], eax
mov eax, ebx
shl eax, 0x13
or eax, 0x10
shl eax, cl
or dword [esi], eax
mov eax, 8
shl eax, cl
or dword [esi + 4], eax
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4cbe9b
cmp dword [esp + 0x1c], eax
jne 0x4cbeb4
lea eax, [edx*4 + 8]
shl ebx, 0x1f
mov ecx, esi
or ebx, 0x10000
sub ecx, eax
or dword [ecx], ebx
or dword [ecx - 4], 0x20000
or dword [ecx + 4], 0x8000
jmp 0x4cbeb4
cmp eax, 3
jne 0x4cbeb4
shl ebx, 0x12
or ebx, 2
or dword [esi + edx*4 + 8], ebx
or dword [esi + edx*4 + 4], 4
or dword [esi + edx*4 + 0xc], 1
mov eax, 0x200000
mov ecx, ebp
shl eax, cl
or dword [esi], eax
mov edx, dword [esp + 0x20]
add ebp, 3
inc dword [esp + 0x34]
inc edx
mov eax, dword [edi + 0x80]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], edx
cmp edx, eax
jb 0x4cbcd8
inc ebx
add esi, 4
mov dword [esp + 0x10], ebx
cmp ebx, dword [edi + 0x7c]
jb 0x4cbcb7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret