Function at 0x4a7bf4
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 0x4a7c3b
pop edx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x44], edx
jbe 0x4a7c4e
and dword [ecx], 0
jmp 0x4ab830
mov ebx, dword [edi + 0xc]
mov dword [esp + 0x5c], ecx
cmp ebx, 0xffffffff
je 0x4ab8d8
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.004a6ebd
pop ecx
cmp al, 2
mov dword [esp + 0x8c], edx
jne 0x4a7c9e
mov eax, dword [esp + 0x5c]
and dword [eax], 0
jmp 0x4ab830
mov edx, dword [esp + 0x5c]
test al, 1
mov dword [esp + 0x80], 0
mov byte [esp + 0x43], al
jne 0x4a7cd8
cmp byte [esi + 0x10], 3
lea eax, [esi + 4]
mov ecx, 0x5ac83c
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 0x4ab820
cmp dword [edi + 0x24], 0
je 0x4a7d4b
mov ebp, ebx
mov ebx, dword [esp + 0xc]
jmp 0x4a7dac
mov ecx, dword [esp + 0xc]
test esi, esi
sete al
cmp ecx, dword [esp + 0x70]
seta cl
test byte [esp + 0x5b], cl
jne 0x4ab820
or al, byte [esp + 0x33]
je 0x4ab820
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4a7d43
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.0047dc95
add esp, 0x14
cmp dword [esp + 0x18], 0
je 0x4ab81c
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 0x4a8b66
or al, cl
je 0x4a8b66
mov edx, dword [edi + 0x60]
mov ecx, dword [edi + 0x58]
mov eax, edx
sub eax, dword [edi + 0x68]
push 0x5ae728
push edx
push eax
call fcn.004a6f80
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.00420847
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 0x4a8b6f
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 0x4a7e7b
cmp edx, 2
je 0x4a8b6f
add eax, ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x4c]
mov edi, dword [eax + 8]
push 0x5ae684
push ebp
call fcn.00479287
pop ecx
pop edx
mov dword [eax], edi
jmp 0x4a7e2e
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 0x5af930
push ebp
call fcn.00408083
pop ecx
pop edx
mov eax, dword [eax]
mov esi, dword [esp + 0x14]
cmp eax, esi
jae 0x4a7eca
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x14]
push 0x5af940
push eax
call fcn.00408083
mov esi, dword [esp + 0x1c]
add esp, 8
cmp dword [eax], ebp
je 0x4a7e2e
mov edx, dword [edi + 0x14]
mov dword [esp + 0x54], esi
cmp esi, edx
jae 0x4ab84a
mov ecx, dword [edi + 0xc]
push 0x5af910
push esi
call fcn.00408083
pop ecx
pop edx
mov dword [eax], ebp
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x20]
push 0x5af920
push dword [esp + 0x40]
call fcn.00408083
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.00478de9
mov ecx, dword [eax]
mov ecx, dword [ecx*4 + 0x4ab900]
add ecx, dword [esp + 0x44]
jmp ecx
lea eax, [ebx + 1]
mov dword [esp + 0xc], eax
jmp 0x4a8b75
mov ebp, ebx
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
call fcn.0047c4bc
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 0x4ab790
mov esi, dword [eax]
mov ecx, dword [esp + 0x50]
add eax, 4
mov dword [esp + 0x60], eax
mov edx, esi
call fcn.00478de9
mov edi, eax
mov eax, dword [eax]
mov eax, dword [eax*4 + 0x4ab944]
add eax, dword [esp + 0x44]
jmp eax
test byte [esp + 0x98], 1
je 0x4ab7b2
cmp byte [esp + 0x42], 0
jne 0x4ab80a
mov eax, dword [esp + 0x7c]
xor esi, esi
mov dword [esp + 0x64], ebx
inc esi
mov dword [esp + 0x68], eax
jmp 0x4ab7d5
cmp byte [esp + 0x42], 0
mov eax, dword [esp + 0x94]
mov esi, 0
cmove esi, eax
je 0x4ab7d5
mov edi, dword [esp + 0xcc]
test eax, eax
je 0x4ab7dc
jmp 0x4ab819
mov edi, dword [esp + 0xcc]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x90]
mov ebx, ebp
call fcn.004a6f5f
and dword [edi + 0x54], 0
mov edx, dword [esp + 0x5c]
jmp 0x4a7d2c
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x5c]
xor esi, esi
mov ecx, ebx
inc esi
jmp 0x4ab828
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.00404493
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.00472953
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, 0x5af900
mov dword [ecx + 0xc], eax
call fcn.005769a0
ud2
lea ecx, [esp + 0x18]
mov edx, 0x5ae654
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 0x4ab89f