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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, edx
mov edi, dword [esp + 0xd0]
mov edx, dword [esp + 0xcc]
mov eax, dword [esp + 0xd8]
and dword [edx + 8], 0
and dword [edx + 0x24], 0
mov dword [edx + 0x38], eax
and dword [edx + 0x54], 0
mov dword [edx + 0x68], eax
mov ebx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp ebx, edx
mov dword [esp + 0x88], edx
call 0x4aa557
pop edx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x44], edx
jbe 0x4aa56a
and dword [ecx], 0
jmp 0x4ae14c
mov ebx, dword [edi + 0xc]
mov dword [esp + 0x5c], ecx
cmp ebx, 0xffffffff
je 0x4ae1f4
mov eax, dword [edi + 8]
mov ecx, dword [esi]
mov edx, dword [edi]
mov dword [esp + 8], eax
mov al, byte [esi + 0x14]
mov dword [esp + 0x48], ecx
cmp al, 2
setne byte [esp + 0x33]
test al, 1
sete byte [esp + 0x50]
push dword [edi + 4]
call fcn.004a975d
pop ecx
cmp al, 2
mov dword [esp + 0x8c], edx
jne 0x4aa5ba
mov eax, dword [esp + 0x5c]
and dword [eax], 0
jmp 0x4ae14c
mov edx, dword [esp + 0x5c]
test al, 1
mov dword [esp + 0x80], 0
mov byte [esp + 0x43], al
jne 0x4aa5f4
cmp byte [esi + 0x10], 3
lea eax, [esi + 4]
mov ecx, 0x5ba6dc
cmovne ecx, eax
xor ebp, ebp
mov al, byte [esp + 0x43]
cmp byte [ecx + 0xc], 2
cmovne ebp, ecx
mov dword [esp + 0x80], ebp
and al, 1
mov cl, byte [esp + 0x50]
mov dword [esp + 4], ebx
mov byte [esp + 0x5b], al
mov eax, dword [esp + 0xcc]
and byte [esp + 0x33], cl
lea ecx, [eax + 0xc]
mov dword [esp + 0x84], ecx
lea ecx, [eax + 0x58]
mov dword [esp + 0x74], ecx
lea ecx, [eax + 0x3c]
mov dword [esp + 0x90], ecx
mov cl, byte [edi + 0x18]
mov edi, eax
add eax, 0x28
mov dword [esp + 0x6c], eax
mov eax, dword [esi]
xor esi, esi
mov byte [esp + 0x42], cl
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x50], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x88]
ja 0x4ae13c
cmp dword [edi + 0x24], 0
je 0x4aa667
mov ebp, ebx
mov ebx, dword [esp + 0xc]
jmp 0x4aa6c8
mov ecx, dword [esp + 0xc]
test esi, esi
sete al
cmp ecx, dword [esp + 0x70]
seta cl
test byte [esp + 0x5b], cl
jne 0x4ae13c
or al, byte [esp + 0x33]
je 0x4ae13c
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4aa65f
mov edx, dword [eax]
lea ecx, [esp + 0x18]
push dword [esp + 0x88]
push dword [esp + 0x10]
push ebx
push dword [esp + 0x14]
push dword [eax + 4]
call fcn.00480561
add esp, 0x14
cmp dword [esp + 0x18], 0
je 0x4ae138
mov ebp, ebx
mov ebx, dword [esp + 0x1c]
test byte [esp + 0x43], 1
mov ah, byte [esp + 0x33]
mov dword [esp + 0x94], esi
mov dword [esp + 0x10], ebx
sete al
test esi, esi
not ah
setne dl
cmp ebx, dword [esp + 0x70]
sete cl
test ah, dl
jne 0x4ab482
or al, cl
je 0x4ab482
mov edx, dword [edi + 0x60]
mov ecx, dword [edi + 0x58]
mov eax, edx
sub eax, dword [edi + 0x68]
push 0x5bc5c8
push edx
push eax
call fcn.004a9856
add esp, 0xc
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x60], eax
mov dword [esp + 0x1c], ecx
and dword [esp + 0x18], 0
mov ecx, edi
call fcn.004a9799
lea eax, [ebx + 1]
lea ecx, [ebx - 1]
mov ebx, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x38], ecx
mov edi, dword [esp + 0xcc]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4ab48b
dec ecx
mov dword [edi + 8], ecx
imul ecx, ecx, 0xc
mov eax, dword [edi]
mov edx, dword [eax + ecx]
mov ebp, dword [eax + ecx + 4]
test edx, edx
je 0x4aa797
cmp edx, 2
je 0x4ab48b
add eax, ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x4c]
mov edi, dword [eax + 8]
push 0x5bc524
push ebp
call fcn.0047bbac
pop ecx
pop edx
mov dword [eax], edi
jmp 0x4aa74a
mov eax, dword [edi + 0x24]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0xcc]
mov dword [esp + 0x3c], ebp
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x20]
push 0x5bd7d0
push ebp
call fcn.00470464
pop ecx
pop edx
mov eax, dword [eax]
mov esi, dword [esp + 0x14]
cmp eax, esi
jae 0x4aa7e6
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x14]
push 0x5bd7e0
push eax
call fcn.00470464
mov esi, dword [esp + 0x1c]
add esp, 8
cmp dword [eax], ebp
je 0x4aa74a
mov edx, dword [edi + 0x14]
mov dword [esp + 0x54], esi
cmp esi, edx
jae 0x4ae166
mov ecx, dword [edi + 0xc]
push 0x5bd7b0
push esi
call fcn.00470464
pop ecx
pop edx
mov dword [eax], ebp
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x20]
push 0x5bd7c0
push dword [esp + 0x40]
call fcn.00470464
pop ecx
pop edx
mov ecx, dword [esp + 0x50]
mov dword [eax], esi
inc esi
mov edx, ebp
mov dword [esp + 0x14], esi
mov dword [edi + 0x24], esi
call fcn.0047b70e
mov ecx, dword [eax]
mov ecx, dword [ecx*4 + 0x4ae21c]
add ecx, dword [esp + 0x44]
jmp ecx
lea eax, [ebx + 1]
mov dword [esp + 0xc], eax
jmp 0x4ab491
mov ebp, ebx
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
call fcn.0047ed65
mov dword [esp + 0x60], eax
lea eax, [ebx + 2]
xor ecx, ecx
mov dword [esp + 0x9c], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x98], ecx
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x9c]
je 0x4ae0ac
mov esi, dword [eax]
mov ecx, dword [esp + 0x50]
add eax, 4
mov dword [esp + 0x60], eax
mov edx, esi
call fcn.0047b70e
mov edi, eax
mov eax, dword [eax]
mov eax, dword [eax*4 + 0x4ae260]
add eax, dword [esp + 0x44]
jmp eax
test byte [esp + 0x98], 1
je 0x4ae0ce
cmp byte [esp + 0x42], 0
jne 0x4ae126
mov eax, dword [esp + 0x7c]
xor esi, esi
mov dword [esp + 0x64], ebx
inc esi
mov dword [esp + 0x68], eax
jmp 0x4ae0f1
cmp byte [esp + 0x42], 0
mov eax, dword [esp + 0x94]
mov esi, 0
cmove esi, eax
je 0x4ae0f1
mov edi, dword [esp + 0xcc]
test eax, eax
je 0x4ae0f8
jmp 0x4ae135
mov edi, dword [esp + 0xcc]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x90]
mov ebx, ebp
call fcn.004a9835
and dword [edi + 0x54], 0
mov edx, dword [esp + 0x5c]
jmp 0x4aa648
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x5c]
xor esi, esi
mov ecx, ebx
inc esi
jmp 0x4ae144
xor esi, esi
inc esi
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov dword [edx], esi
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x54]
lea eax, [esp + 0x78]
mov dword [esp + 0x18], ecx
mov ecx, fcn.00404681
mov dword [eax], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x3c]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], fcn.00473dae
mov dword [ecx], str.assertion_failed:_mid___self.len__chunk_size_must_be_non_zero
push 3
pop eax
mov dword [ecx + 4], eax
and dword [ecx + 0x10], 0
lea edx, [esp + 0x18]
mov dword [ecx + 8], edx
mov edx, 0x5bd7a0
mov dword [ecx + 0xc], eax
call fcn.00580e60
ud2
lea ecx, [esp + 0x18]
mov edx, 0x5bc4f4
mov dword [ecx], str.byte_slice_lengths_must_be_less_than_usize_MAX
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], str.assertion_failed:_mid___self.len__chunk_size_must_be_non_zero
and dword [ecx + 0xc], 0
jmp 0x4ae1bb