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

Disassembly:
mov edx, dword [esi + 4]
sub esp, 8
push ebx
push ebp
mov byte [edx + esi + 8], al
mov eax, dword [esi]
mov ebp, 1
add edx, ebp
push edi
mov edi, ecx
mov dword [esi + 4], edx
cmp eax, 6
jne 0x4a1dae
cmp edx, 3
jb 0x4a1d0f
mov eax, dword [esi + 8]
mov ecx, eax
shr ecx, 1
and ecx, 3
cmp ecx, ebp
jne 0x4a1cfc
cmp edx, 3
je 0x4a1d0f
add dword [edi], ebp
mov ebp, 0
adc dword [edi + 4], ebp
cmp ecx, 3
jne 0x4a1d1b
mov byte [esi + 0x1a], 1
pop edi
pop ebp
mov eax, 6
pop ebx
add esp, 8
ret
mov dl, al
and dl, 1
shr eax, 3
and eax, 0x1fffff
mov byte [esi + 0x19], cl
mov byte [esi + 0x18], dl
mov dword [esi + 0x2c], ebp
mov dword [esi + 4], ebp
jne 0x4a1d58
cmp ecx, 2
je 0x4a1d0b
test dl, dl
je 0x4a1d0f
mov al, byte [esi + 0x16]
and al, 4
movzx eax, al
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffff9
pop ebp
add eax, 8
pop ebx
add esp, 8
ret
mov ebx, dword [esi + 0x98]
mov dword [esi + 0x20], eax
cmp ebx, 0x20000
jb 0x4a1d6e
mov ebx, 0x20000
cmp eax, ebx
ja 0x4a1d0b
test byte [esi + 0x16], 0xe0
je 0x4a1d92
mov edi, dword [esi + 0x30]
sub edi, dword [esi + 0x38]
mov edx, dword [esi + 0x34]
sbb edx, dword [esi + 0x3c]
xor ebp, ebp
cmp ebp, edx
jb 0x4a1d92
ja 0x4a1d90
cmp ebx, edi
jbe 0x4a1d92
mov ebx, edi
mov dword [esi + 0x28], ebx
cmp ecx, 2
je 0x4a1da2
cmp eax, ebx
ja 0x4a1d0b
pop edi
pop ebp
mov eax, 7
pop ebx
add esp, 8
ret
cmp eax, 3
jae 0x4a1e88
cmp edx, 4
jne 0x4a1fbc
mov ebx, dword [esi + 8]
cmp eax, ebp
jae 0x4a1e11
xor eax, eax
cmp ebx, 0xfd2fb528
jne 0x4a1de6
mov dword [esi + 4], eax
add dword [edi + 0x18], ebp
adc dword [edi + 0x1c], eax
pop edi
pop ebp
mov eax, 4
pop ebx
add esp, 8
ret
and ebx, 0xfffffff0
cmp ebx, 0x184d2a50
jne 0x4a1e06
mov dword [esi + 4], eax
add dword [edi + 0x20], ebp
adc dword [edi + 0x24], eax
pop edi
pop ebp
mov eax, 2
pop ebx
add esp, 8
ret
pop edi
pop ebp
mov byte [esi + 0x1a], 1
pop ebx
add esp, 8
ret
jne 0x4a1e6b
mov byte [edi + 0xc], 1
mov dword [edi + 0x10], ebx
cmp byte [esi + 0x1c], 0
jne 0x4a1e5f
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x80]
and eax, 0x1f
cmp ecx, eax
jae 0x4a1e40
pop edi
pop ebp
mov byte [esi + 0x1a], 1
mov eax, 8
pop ebx
add esp, 8
ret
mov edx, dword [esi + 0x3c]
push edx
mov edx, dword [esi + 0x38]
push edx
mov edx, dword [esi + 0x78]
sub edx, eax
add edx, ecx
lea ecx, [esi + 0x40]
call fcn.0049af20
cmp eax, ebx
je 0x4a1e5f
mov byte [esi + 0x1b], 1
pop edi
pop ebp
mov eax, 8
pop ebx
add esp, 8
ret
mov dword [esi + 0x20], ebx
add dword [edi + 0x28], ebx
mov eax, 0
adc dword [edi + 0x2c], eax
pop edi
pop ebp
mov dword [esi + 4], eax
mov eax, 3
pop ebx
add esp, 8
ret
movzx eax, byte [esi + 8]
mov byte [esi + 0x16], al
test al, 8
je 0x4a1ea3
pop edi
pop ebp
mov byte [esi + 0x1a], 1
mov eax, 4
pop ebx
add esp, 8
ret
mov ecx, eax
shr ecx, 5
mov dword [esp + 0xc], ecx
add ecx, ecx
add ecx, ecx
mov ebx, 0x9a563422
shr ebx, cl
mov ebp, eax
and ebp, 3
mov ecx, 3
and ebx, 0xf
sub edx, ebx
sub ecx, ebp
mov ebx, 4
shr ebx, cl
cmp edx, ebx
jne 0x4a1dda
or byte [edi + 8], al
mov cl, al
not cl
or byte [edi + 9], cl
xor cl, cl
lea ebx, [esi + 9]
test al, 0x20
jne 0x4a1ef5
mov cl, byte [ebx]
inc ebx
cmp byte [edi + 0xb], cl
jae 0x4a1ef5
mov byte [edi + 0xb], cl
xor eax, eax
mov byte [esi + 0x17], cl
test ebp, ebp
je 0x4a1f1e
lea ecx, [ebp - 1]
mov edx, 1
shl edx, cl
mov ecx, 4
or eax, 0xffffffff
sub ecx, edx
add ecx, ecx
add ecx, ecx
add ecx, ecx
shr eax, cl
and eax, dword [ebx]
add ebx, edx
xor ebp, ebp
mov dword [esi + 0x24], eax
cmp eax, ebp
je 0x4a1f3b
mov ecx, dword [edi + 0x14]
cmp ecx, ebp
jne 0x4a1f33
mov dword [edi + 0x14], eax
jmp 0x4a1f3b
cmp ecx, eax
je 0x4a1f3b
mov byte [edi + 0xd], 1
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xc], ebp
test ecx, ecx
je 0x4a1f9e
shr ecx, 1
cmp ecx, 1
jne 0x4a1f58
mov dword [esp + 0xc], 0x100
xor ebp, ebp
mov edx, 8
shl edx, cl
mov ecx, 0x40
or eax, 0xffffffff
sub ecx, edx
or edx, 0xffffffff
call fcn.004a5380
and edx, dword [ebx + 4]
mov ecx, eax
and ecx, dword [ebx]
mov eax, dword [esp + 0xc]
add eax, ecx
adc ebp, edx
mov dword [esp + 0xc], eax
cmp dword [edi + 0x3c], ebp
ja 0x4a1f96
jb 0x4a1f90
cmp dword [edi + 0x38], eax
jae 0x4a1f96
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ebp
add dword [edi + 0x30], eax
adc dword [edi + 0x34], ebp
jmp 0x4a1fa2
mov byte [edi + 0xa], 1
mov edx, dword [esp + 0xc]
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], ebp
mov dword [esi + 4], 0
mov byte [edi + 0xc], 0
mov eax, 5
pop edi
pop ebp
pop ebx
add esp, 8
ret