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

Disassembly:
mov eax, dword [ecx]
sub esp, 0x278
push ebx
push ebp
push esi
movzx esi, byte [eax]
dec dword [ecx + 4]
mov edx, dword [ecx + 4]
lea ebp, [eax + 1]
push edi
mov dword [ecx], ebp
cmp esi, 0x80
jb 0x4a0ce4
add esi, 0xffffff81
lea edi, [esi + 1]
shr edi, 1
xor eax, eax
cmp edx, edi
jb 0x4a0e08
lea ebx, [edi + ebp]
sub edx, edi
mov dword [ecx], ebx
mov dword [ecx + 4], edx
mov edi, edi
movzx ecx, byte [eax + ebp]
mov edx, ecx
shr edx, 4
and cl, 0xf
mov byte [esp + eax*2 + 0x84], dl
mov byte [esp + eax*2 + 0x85], cl
inc eax
cmp eax, edi
jne 0x4a0cc0
jmp 0x4a0e1e
cmp edx, esi
jb 0x4a0e08
push 0x10
mov dword [esp + 0x14], ebp
sub edx, esi
push 6
add ebp, esi
mov dword [ecx + 4], edx
lea eax, [esp + 0x18]
mov dword [ecx], ebp
push eax
lea ecx, [esp + 0x194]
push ecx
lea edx, [esp + 0x2b]
mov dword [esp + 0x24], esi
call fcn.004a0740
test eax, eax
jne 0x4a0e0d
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
movzx eax, byte [ecx + ebp - 1]
test eax, eax
je 0x4a0e08
bsr edx, eax
mov dword [esp + 0x10], edx
mov eax, edx
movzx edx, byte [esp + 0x1b]
lea eax, [eax + ecx*8 - 8]
mov ecx, edx
shr ecx, 2
sub ebp, ecx
shl edx, 8
mov ecx, edx
shr ecx, 8
movzx edi, cl
mov ecx, eax
sar ecx, 3
movzx ebx, word [ecx + ebp]
mov ecx, eax
and ecx, 7
xor esi, esi
shr ebx, cl
sub eax, edi
mov dword [esp + 0x10], edx
js 0x4a0e04
mov ecx, 8
sub ecx, edi
movzx edi, bl
shr edi, cl
mov ecx, dword [esp + 0x10]
shr edx, 0x10
shr ecx, 8
add edi, edx
mov edx, dword [esp + edi*4 + 0x188]
movzx edi, cl
mov ecx, eax
sar ecx, 3
movzx ebx, word [ecx + ebp]
mov ecx, eax
and ecx, 7
mov byte [esp + esi + 0x84], dl
inc esi
shr ebx, cl
sub eax, edi
js 0x4a0e1a
mov ecx, 8
sub ecx, edi
movzx edi, bl
shr edi, cl
mov ecx, dword [esp + 0x10]
shr ecx, 0x10
inc esi
add edi, ecx
mov ecx, dword [esp + edi*4 + 0x188]
mov byte [esp + esi + 0x83], cl
mov dword [esp + 0x10], ecx
cmp esi, 0x100
je 0x4a0e08
mov ecx, edx
shr ecx, 8
movzx edi, cl
mov ecx, eax
sar ecx, 3
movzx ebx, word [ecx + ebp]
mov ecx, eax
and ecx, 7
shr ebx, cl
sub eax, edi
jns 0x4a0d76
add edi, eax
je 0x4a0e1e
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x278
ret 4
add edi, eax
jne 0x4a0e08
xor edx, edx
xor eax, eax
mov byte [esp + esi + 0x84], al
lea esp, [esp]
movzx ecx, byte [esp + eax + 0x85]
mov edi, 1
shl edi, cl
movzx ecx, byte [esp + eax + 0x84]
mov ebx, 1
shl ebx, cl
and edi, 0xfffffffe
add eax, 2
and ebx, 0xfffffffe
add edx, ebx
add edx, edi
cmp eax, esi
jb 0x4a0e30
test edx, edx
je 0x4a0e08
bsr eax, edx
mov ecx, eax
mov dword [esp + 0x10], eax
inc ecx
mov eax, 1
shl eax, cl
sub eax, edx
lea edx, [eax - 1]
test eax, edx
jne 0x4a0e08
bsr eax, eax
mov dl, al
mov byte [esp + esi + 0x84], dl
inc esi
lea ebx, [esp + esi + 0x84]
mov dword [esp + 0x10], eax
mov dword [esp + 0x10], ebx
mov byte [ebx], 0
xor edi, edi
mov edi, edi
movzx edx, byte [esp + edi + 0x84]
test edx, edx
je 0x4a0ec0
mov eax, ecx
sub eax, edx
cmp eax, 0xc
ja 0x4a0e08
mov byte [esp + edi + 0x84], al
inc edi
cmp edi, esi
jne 0x4a0ea0
xor eax, eax
lea ebp, [esp + 0x84]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov eax, ebp
jmp 0x4a0f40
movzx ecx, byte [eax]
inc dword [esp + ecx*4 + 0x1c]
lea ecx, [esp + ecx*4 + 0x1c]
movzx ecx, byte [eax + 1]
inc dword [esp + ecx*4 + 0x50]
lea ecx, [esp + ecx*4 + 0x50]
add eax, 2
cmp eax, ebx
jb 0x4a0f40
xor edi, edi
mov esi, 0xc
jmp 0x4a0f70
mov eax, dword [esp + esi*4 + 0x50]
add eax, dword [esp + esi*4 + 0x1c]
mov ecx, 0xc
sub ecx, esi
shl eax, cl
mov dword [esp + esi*4 + 0x1c], edi
test eax, eax
je 0x4a0f9f
mov ecx, dword [esp + 0x28c]
push eax
add ecx, edi
push esi
push ecx
add edi, eax
call sub.MSVCRT.dll_memset
add esp, 0xc
dec esi
jne 0x4a0f70
xor ebx, ebx
mov dword [esp + 0x1c], ebx
movzx ecx, byte [ebp]
inc ebp
test ecx, ecx
je 0x4a1002
mov esi, dword [esp + ecx*4 + 0x1c]
lea eax, [esp + ecx*4 + 0x1c]
mov edx, 0x1000
shr edx, cl
lea ecx, [edx + esi]
mov dword [eax], ecx
mov eax, dword [esp + 0x28c]
lea eax, [esi + eax + 0x1090]
cmp edx, 2
ja 0x4a0fe0
mov byte [eax], bl
mov byte [eax + edx - 1], bl
jmp 0x4a1002
cmp edx, 8
ja 0x4a0fed
mov dword [eax], ebx
mov dword [eax + edx - 4], ebx
jmp 0x4a1002
add edx, eax
nop
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
add eax, 0x10
cmp eax, edx
jne 0x4a0ff0
add ebx, 0x1010101
cmp ebp, dword [esp + 0x10]
jne 0x4a0fa8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x278
ret 4