Function at 0x4ae2a8
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 0x4ae6b9
test dword [esp + 0x74], 8
je 0x4ae2fe
mov esi, dword [ebx]
cmp dword [esi], 0x4d6be0
je 0x4ae6b9
mov ebp, dword [esp + 0x7c]
mov ecx, dword [ebx]
mov eax, ebx
call dword [ecx + 0x44]
mov esi, eax
test eax, eax
jne 0x4ae3c8
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
add esi, 0x44
shr edx, 2
mov ebx, ebp
shr ebx, 2
je 0x4ae5f6
mov ecx, edx
and ecx, 0x1f
lea eax, [ebx + edx - 1]
mov dword [esp + 0x54], ecx
mov edi, eax
mov ecx, eax
and ecx, 0x1f
shr edi, 5
mov dword [esp + 0x34], ecx
mov ecx, edx
shr ecx, 5
mov dword [esp + 0x44], ecx
cmp ecx, edi
jne 0x4ae37f
mov ebx, dword [esp + 0x54]
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 [esp + 0x44]
mov eax, dword [esi]
not edx
and dword [eax + ecx*4], edx
jmp 0x4ae5f6
mov edx, 0xffffffff
mov ecx, dword [esp + 0x54]
shl edx, cl
mov ecx, dword [esp + 0x44]
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 0x4ae3b0
mov edx, dword [esi]
mov dword [edx + ebx*4], 0
inc ebx
cmp ebx, edi
jb 0x4ae3a2
mov edx, 2
mov ecx, dword [esp + 0x34]
shl edx, cl
dec edx
mov ecx, dword [esi]
not edx
and dword [ecx + edi*4], edx
jmp 0x4ae5f6
cmp esi, 1
jne 0x4ae484
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
add esi, 0x44
shr edx, 2
mov ebx, ebp
shr ebx, 2
je 0x4ae5f6
mov ecx, edx
and ecx, 0x1f
lea eax, [ebx + edx - 1]
mov dword [esp + 0x48], ecx
mov edi, eax
mov ecx, eax
and ecx, 0x1f
shr edi, 5
mov dword [esp + 0x28], ecx
mov ecx, edx
shr ecx, 5
mov dword [esp + 0x3c], ecx
cmp ecx, edi
jne 0x4ae43f
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
mov edx, 2
sub ecx, ebx
shl edx, cl
dec edx
mov ecx, ebx
shl edx, cl
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi]
or dword [eax + ecx*4], edx
jmp 0x4ae5f6
mov edx, 0xffffffff
mov ecx, dword [esp + 0x48]
shl edx, cl
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi]
lea ebx, [ecx + 1]
or dword [eax + ecx*4], edx
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x18], edi
jae 0x4ae46e
mov edx, dword [esi]
mov dword [edx + ebx*4], 0xffffffff
inc ebx
cmp ebx, edi
jb 0x4ae460
mov edx, 2
mov ecx, dword [esp + 0x28]
shl edx, cl
mov ecx, dword [esi]
dec edx
or dword [ecx + edi*4], edx
jmp 0x4ae5f6
mov dword [esp + 0x80], ebp
mov ebp, esi
add ebp, 4
test dword [esp + 0x74], 8
mov edx, dword [esi]
je 0x4ae502
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 0x4ae4ec
test ebx, ebx
setne al
test al, al
je 0x4ae4e4
mov byte [esp + 0x68], al
mov eax, dword [esp + 0x60]
push edi
push ebx
push ebp
call fcn.004b2700
mov al, byte [esp + 0x68]
add edi, ebx
sub esi, ebx
cmp ebx, esi
jb 0x4ae4cc
mov ebx, dword [esp + 0x58]
test esi, esi
je 0x4ae533
push edi
mov eax, dword [esp + 0x64]
push esi
push ebp
call fcn.004b2700
jmp 0x4ae533
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x5c]
add esi, 0x44
shr edi, 2
cmp dword [esp + 0x80], edx
jae 0x4ae522
mov ebx, dword [esp + 0x80]
jmp 0x4ae524
mov ebx, edx
shr ebx, 2
je 0x4ae533
push edi
mov eax, esi
push ebx
push ebp
call fcn.004b2700
mov edx, ebx
mov ebp, dword [esp + 0x80]
shl edx, 2
cmp edx, ebp
jae 0x4ae5f6
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 0x4ae5f6
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 + 0x30], ecx
mov ecx, eax
shr ecx, 5
mov dword [esp + 0x4c], ecx
shr edi, 5
cmp ecx, edi
jne 0x4ae5b2
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 + 0x4c]
mov eax, dword [esi]
or dword [eax + ecx*4], edx
jmp 0x4ae5f6
mov dword [esp + 0x40], ebx
mov edx, 0xffffffff
mov ecx, dword [esp + 0x40]
shl edx, cl
mov ecx, dword [esp + 0x4c]
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 0x4ae5e5
mov edx, dword [esi]
mov dword [edx + ebx*4], 0xffffffff
inc ebx
cmp ebx, edi
jb 0x4ae5d7
mov edx, 2
mov ecx, dword [esp + 0x30]
shl edx, cl
mov ecx, dword [esi]
dec edx
or dword [ecx + edi*4], edx
cmp ebp, dword [esp + 0x7c]
jae 0x4ae75c
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 0x4ae75c
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
mov ebp, edx
shr edi, 5
mov dword [esp + 0x2c], ecx
shr ebp, 5
cmp ebp, edi
jne 0x4ae678
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x2c]
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 0x4ae75c
mov edx, 0xffffffff
mov ecx, dword [esp + 0x50]
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 0x4ae6a1
mov edx, dword [esi]
mov dword [edx + ebx*4], 0
inc ebx
cmp ebx, edi
jb 0x4ae693
mov edx, 2
mov ecx, dword [esp + 0x2c]
shl edx, cl
dec edx
mov ecx, dword [esi]
not edx
and dword [ecx + edi*4], edx
jmp 0x4ae75c
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 0x4ae75c
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 + 0x38], ecx
cmp ebp, eax
jne 0x4ae71a
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 [edi]
or dword [ecx + ebp*4], edx
jmp 0x4ae75c
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 + 0x10], esi
cmp dword [esp + 0x10], eax
jae 0x4ae743
mov edx, dword [edi]
mov dword [edx + esi*4], 0xffffffff
inc esi
cmp esi, eax
jb 0x4ae735
mov dword [esp + 0x64], eax
mov eax, 2
mov ecx, dword [esp + 0x38]
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