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

Disassembly:
sub esp, 0x70
mov ecx, dword [esp + 0x84]
mov dword [esp], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
sub ecx, dword [edx]
test ebx, ebx
mov dword [esp + 0x5c], ecx
je 0x4a1a61
test dword [esp + 0x74], 8
je 0x4a16a6
mov esi, dword [ebx]
cmp dword [esi], 0x4c3040
je 0x4a1a61
mov ebp, dword [esp + 0x7c]
mov ecx, dword [ebx]
mov eax, ebx
call dword [ecx + 0x44]
mov esi, eax
test eax, eax
jne 0x4a1770
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
add esi, 0x44
shr edx, 2
mov ebx, ebp
shr ebx, 2
je 0x4a199e
mov ecx, edx
and ecx, 0x1f
lea eax, [ebx + edx - 1]
mov dword [esp + 0x50], ecx
mov edi, eax
mov ecx, eax
and ecx, 0x1f
shr edi, 5
mov dword [esp + 0x38], ecx
mov ecx, edx
shr ecx, 5
mov dword [esp + 0x40], ecx
cmp ecx, edi
jne 0x4a1727
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
mov edx, 2
sub ecx, ebx
shl edx, cl
dec edx
mov ecx, ebx
shl edx, cl
mov ecx, dword [esp + 0x40]
mov eax, dword [esi]
not edx
and dword [eax + ecx*4], edx
jmp 0x4a199e
mov edx, 0xffffffff
mov ecx, dword [esp + 0x50]
shl edx, cl
mov ecx, dword [esp + 0x40]
mov eax, dword [esi]
not edx
and dword [eax + ecx*4], edx
lea ebx, [ecx + 1]
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x20], edi
jae 0x4a1758
mov edx, dword [esi]
mov dword [edx + ebx*4], 0
inc ebx
cmp ebx, edi
jb 0x4a174a
mov edx, 2
mov ecx, dword [esp + 0x38]
shl edx, cl
dec edx
mov ecx, dword [esi]
not edx
and dword [ecx + edi*4], edx
jmp 0x4a199e
cmp esi, 1
jne 0x4a182c
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
add esi, 0x44
shr edx, 2
mov ebx, ebp
shr ebx, 2
je 0x4a199e
mov ecx, edx
and ecx, 0x1f
lea eax, [ebx + edx - 1]
mov dword [esp + 0x4c], ecx
mov edi, eax
mov ecx, eax
and ecx, 0x1f
shr edi, 5
mov dword [esp + 0x30], ecx
mov ecx, edx
shr ecx, 5
mov dword [esp + 0x48], ecx
cmp ecx, edi
jne 0x4a17e7
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
mov edx, 2
sub ecx, ebx
shl edx, cl
dec edx
mov ecx, ebx
shl edx, cl
mov ecx, dword [esp + 0x48]
mov eax, dword [esi]
or dword [eax + ecx*4], edx
jmp 0x4a199e
mov edx, 0xffffffff
mov ecx, dword [esp + 0x4c]
shl edx, cl
mov ecx, dword [esp + 0x48]
mov eax, dword [esi]
lea ebx, [ecx + 1]
or dword [eax + ecx*4], edx
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x10], edi
jae 0x4a1816
mov edx, dword [esi]
mov dword [edx + ebx*4], 0xffffffff
inc ebx
cmp ebx, edi
jb 0x4a1808
mov edx, 2
mov ecx, dword [esp + 0x30]
shl edx, cl
mov ecx, dword [esi]
dec edx
or dword [ecx + edi*4], edx
jmp 0x4a199e
mov dword [esp + 0x80], ebp
mov ebp, esi
add ebp, 4
test dword [esp + 0x74], 8
mov edx, dword [esi]
je 0x4a18aa
mov ecx, dword [esp + 0x6c]
add ecx, 0x44
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x80]
shr esi, 2
mov ebx, edx
mov dword [esp + 0x58], esi
shr edi, 2
shr ebx, 2
mov dword [esp + 0x60], ecx
cmp ebx, dword [esp + 0x58]
jae 0x4a1894
test ebx, ebx
setne al
test al, al
je 0x4a188c
mov byte [esp + 0x68], al
mov eax, dword [esp + 0x60]
push edi
push ebx
push ebp
call fcn.004a55e4
mov al, byte [esp + 0x68]
add edi, ebx
sub esi, ebx
cmp ebx, esi
jb 0x4a1874
mov ebx, dword [esp + 0x58]
test esi, esi
je 0x4a18db
push edi
mov eax, dword [esp + 0x64]
push esi
push ebp
call fcn.004a55e4
jmp 0x4a18db
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x5c]
add esi, 0x44
shr edi, 2
cmp dword [esp + 0x80], edx
jae 0x4a18ca
mov ebx, dword [esp + 0x80]
jmp 0x4a18cc
mov ebx, edx
shr ebx, 2
je 0x4a18db
push edi
mov eax, esi
push ebx
push ebp
call fcn.004a55e4
mov edx, ebx
mov ebp, dword [esp + 0x80]
shl edx, 2
cmp edx, ebp
jae 0x4a199e
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x5c]
shr eax, 2
mov edx, ebp
add esi, 0x44
add eax, ebx
shr edx, 2
sub edx, ebx
je 0x4a199e
mov ebx, eax
lea edi, [edx + eax - 1]
and ebx, 0x1f
mov dword [esp + 0x24], edi
mov ecx, dword [esp + 0x24]
and ecx, 0x1f
mov dword [esp + 0x2c], ecx
mov ecx, eax
shr ecx, 5
mov dword [esp + 0x44], ecx
shr edi, 5
cmp ecx, edi
jne 0x4a195a
mov ecx, dword [esp + 0x2c]
mov edx, 2
sub ecx, ebx
shl edx, cl
dec edx
mov ecx, ebx
shl edx, cl
mov ecx, dword [esp + 0x44]
mov eax, dword [esi]
or dword [eax + ecx*4], edx
jmp 0x4a199e
mov dword [esp + 0x54], ebx
mov edx, 0xffffffff
mov ecx, dword [esp + 0x54]
shl edx, cl
mov ecx, dword [esp + 0x44]
mov eax, dword [esi]
or dword [eax + ecx*4], edx
lea ebx, [ecx + 1]
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x1c], edi
jae 0x4a198d
mov edx, dword [esi]
mov dword [edx + ebx*4], 0xffffffff
inc ebx
cmp ebx, edi
jb 0x4a197f
mov edx, 2
mov ecx, dword [esp + 0x2c]
shl edx, cl
mov ecx, dword [esi]
dec edx
or dword [ecx + edi*4], edx
cmp ebp, dword [esp + 0x7c]
jae 0x4a1b04
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
lea edx, [ebp + edx + 3]
and edx, 0xfffffffc
mov ecx, ebp
mov ebx, dword [esp + 0x7c]
add esi, 0x44
shr edx, 2
sub ebx, ecx
shr ebx, 2
je 0x4a1b04
mov ecx, edx
and ecx, 0x1f
lea eax, [ebx + edx - 1]
mov dword [esp + 0x3c], ecx
mov edi, eax
mov ecx, eax
and ecx, 0x1f
mov ebp, edx
shr edi, 5
mov dword [esp + 0x28], ecx
shr ebp, 5
cmp ebp, edi
jne 0x4a1a20
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov eax, 2
sub ecx, edx
shl eax, cl
dec eax
mov ecx, edx
shl eax, cl
mov ebx, dword [esi]
not eax
and dword [ebx + ebp*4], eax
jmp 0x4a1b04
mov edx, 0xffffffff
mov ecx, dword [esp + 0x3c]
shl edx, cl
mov ecx, dword [esi]
not edx
lea eax, [ebp + 1]
and dword [ecx + ebp*4], edx
mov ebx, eax
cmp eax, edi
jae 0x4a1a49
mov edx, dword [esi]
mov dword [edx + ebx*4], 0
inc ebx
cmp ebx, edi
jb 0x4a1a3b
mov edx, 2
mov ecx, dword [esp + 0x28]
shl edx, cl
dec edx
mov ecx, dword [esi]
not edx
and dword [ecx + edi*4], edx
jmp 0x4a1b04
mov edi, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
add edi, 0x44
shr edx, 2
mov esi, dword [esp + 0x7c]
shr esi, 2
je 0x4a1b04
mov ebx, edx
lea eax, [esi + edx - 1]
mov ebp, edx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
and ecx, 0x1f
and ebx, 0x1f
shr eax, 5
shr ebp, 5
mov dword [esp + 0x34], ecx
cmp ebp, eax
jne 0x4a1ac2
mov ecx, dword [esp + 0x34]
mov edx, 2
sub ecx, ebx
shl edx, cl
dec edx
mov ecx, ebx
shl edx, cl
mov ecx, dword [edi]
or dword [ecx + ebp*4], edx
jmp 0x4a1b04
mov edx, 0xffffffff
mov ecx, ebx
shl edx, cl
mov ecx, dword [edi]
lea esi, [ebp + 1]
or dword [ecx + ebp*4], edx
mov dword [esp + 0x18], esi
cmp dword [esp + 0x18], eax
jae 0x4a1aeb
mov edx, dword [edi]
mov dword [edx + esi*4], 0xffffffff
inc esi
cmp esi, eax
jb 0x4a1add
mov dword [esp + 0x64], eax
mov eax, 2
mov ecx, dword [esp + 0x34]
shl eax, cl
mov ebx, dword [esp + 0x64]
mov esi, dword [edi]
dec eax
or dword [esi + ebx*4], eax
mov ebx, dword [esp]
mov ebp, dword [esp + 4]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
add esp, 0x70
ret 0x14