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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4af30a
sub esp, 0x60
mov eax, dword [esp + 0x68]
cmp eax, 1
jg 0x4af22c
test eax, eax
je GetEnvironmentStringsW
cmp eax, 1
je GetProcAddress
lea ecx, [eax - 1]
mov edx, dword [esp + 0x74]
mov ebx, edx
imul edx, ecx
mov ebp, dword [esp + 0x64]
xor esi, esi
jmp 0x4af061
lea edi, [esi + 1]
mov dword [esp + 0x38], edi
lea edi, [ebp + esi*8]
mov edi, dword [edi + 4]
add edx, edi
mov edi, dword [esp + 0x38]
mov esi, edi
cmp esi, eax
jge 0x4af06c
jb 0x4af04b
jmp 0x4af303
mov dword [esp + 0x50], ecx
lea eax, [0x5d6b80]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call dbg.runtime.makeslice
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x68]
test ebx, ebx
jbe 0x4af2fc
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov ebx, dword [esp + 0x64]
mov ebp, dword [ebx + 4]
mov esi, dword [ebx]
cmp ecx, ebp
jle 0x4af1fc
mov dword [esp + 0x58], eax
mov dword [esp + 0x3c], ebp
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call dbg.runtime.memmove
mov eax, dword [esp + 0x6c]
dec eax
neg eax
sar eax, 0x1f
and eax, 8
mov ecx, dword [esp + 0x64]
add eax, ecx
xor ecx, ecx
mov edx, dword [esp + 0x3c]
jmp 0x4af118
mov dword [esp + 0x48], edi
mov dword [esp], ebx
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov dword [esp + 8], edi
call dbg.runtime.memmove
mov eax, dword [esp + 0x5c]
add eax, 8
mov ecx, dword [esp + 0x4c]
inc ecx
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x48]
add edx, ebx
mov ebx, dword [esp + 0x50]
cmp ecx, ebx
jge 0x4af1c4
mov ebp, dword [eax + 4]
mov esi, dword [eax]
mov edi, dword [esp + 0x40]
cmp edx, edi
ja 0x4af2f5
mov dword [esp + 0x34], ebp
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x5c], eax
sub edi, edx
mov ebx, dword [esp + 0x44]
sub ebx, edx
neg ebx
sar ebx, 0x1f
and ebx, edx
mov ecx, dword [esp + 0x58]
add ebx, ecx
mov eax, dword [esp + 0x74]
cmp edi, eax
jle 0x4af1c0
mov dword [esp + 0x48], eax
mov dword [esp], ebx
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call dbg.runtime.memmove
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
add eax, ecx
mov ecx, dword [esp + 0x40]
cmp eax, ecx
ja LoadLibraryA
mov dword [esp + 0x3c], eax
sub ecx, eax
mov ebx, dword [esp + 0x44]
sub ebx, eax
neg ebx
sar ebx, 0x1f
and ebx, eax
mov esi, dword [esp + 0x58]
add ebx, esi
mov edi, dword [esp + 0x34]
cmp ecx, edi
jg 0x4af0ea
mov edi, ecx
jmp 0x4af0ea
mov eax, edi
jmp GetStdHandle
mov dword [esp], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
call dbg.runtime.slicebytetostring
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x60
ret
mov ebp, ecx
jmp 0x4af0b7
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x60
ret
mov dword [esp + GetEnvironmentStringsWx78], 0
mov dword [esp + 0x7c], 0
add esp, 0x60
ret
cmp eax, 2
je 0x4af29f
cmp eax, 3
jne GetConsoleMode
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov ebp, dword [eax + 8]
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call dbg.runtime.concatstring5
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x60
ret
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp], CloseHandle
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
call dbg.runtime.concatstring3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x60
ret
call dbg.runtime.panicslice
ud2
call dbg.runtime.panicslice
ud2
call dbg.runtime.panicindex
ud2
call dbg.runtime.panicindex
ud2
call dbg.runtime.morestack_noctxt
jmp dbg.strings.Join