Function at 0x4aaba0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov esi, eax
mov dword [ebp - 0x30], eax
call fcn.00492800
cmp esi, 1
jle 0x4aadce
cmp esi, 0x1fc00000
mov eax, 0xffffffff
lea edx, [esi*4]
cmovbe eax, edx
mov dword [esp], eax
call fcn.004a9640
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.SHELL32.DLL_CommandLineToArgvW]
mov ebx, eax
mov eax, dword [ebp - 0x20]
sub esp, 8
test eax, eax
jle 0x4aac93
xor esi, esi
mov dword [ebp - 0x34], ebx
jmp 0x4aac55
test edi, 2
jne 0x4aac80
mov ecx, edx
xor eax, eax
shr ecx, 2
test dl, 2
rep stosd dword es:[edi], eax
je 0x4aac3f
xor eax, eax
add edi, 2
mov word [edi - 2], ax
and edx, 1
je 0x4aac47
mov byte [edi], 0
mov eax, dword [ebp - 0x2c]
mov dword [eax + esi*4], ebx
add esi, 1
cmp dword [ebp - 0x20], esi
jle 0x4aac90
mov dword [esp], 0x104
call fcn.004a9640
mov edx, 0x104
test al, 1
mov ebx, eax
mov edi, eax
je 0x4aac20
lea edi, [eax + 1]
mov dl, 3
test edi, 2
mov byte [eax], 0
je 0x4aac28
nop
xor eax, eax
add edi, 2
mov word [edi - 2], ax
sub edx, 2
jmp 0x4aac28
mov ebx, dword [ebp - 0x34]
xor edi, edi
lea esi, [ebp - 0x1c]
mov eax, dword [ebx + edi*4]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
mov dword [esp + 8], eax
mov eax, dword [ebx + edi*4]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0041cbc0
mov eax, dword [ebp - 0x1c]
mov ecx, esi
mov dword [esp + 8], 0
mov eax, dword [eax - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + edi*4]
mov dword [esp], eax
call fcn.004a21b0
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 0xc]
sub esp, 0xc
cmp ecx, 0x4b0f44
jne 0x4aae91
add edi, 1
cmp edi, dword [ebp - 0x30]
jne 0x4aac98
call fcn.0041b740
call fcn.0040ba70
test byte [0x4f3060], 1
jne 0x4aad3e
mov esi, dword [ebp - 0x2c]
mov eax, esi
add eax, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [esp], eax
call fcn.00402ab0
test esi, esi
mov ebx, eax
je 0x4aad30
mov dword [esp], esi
call fcn.004a9610
mov eax, ebx
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov esi, dword [eax]
mov dword [esp], 0x4f3068
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call sub.msvcrt.dll__getpid
mov dword [esp + 0x10], edi
mov dword [esp + 8], str.main
mov dword [esp + 4], 0x4b10fc
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.0049fc30
call ebx
mov dword [eax], esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Handling_commandline___n
add eax, 0x40
mov dword [esp], eax
call fcn.0049fc30
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4f3068
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov dword [eax], esi
jmp 0x4aad08
nop
call fcn.0041b740
call fcn.0040ba70
test byte [0x4f3060], 1
jne 0x4aadfd
mov eax, dword [ebp - 0x30]
add ebx, 4
mov dword [esp + 4], ebx
sub eax, 1
mov dword [esp], eax
call fcn.00402ab0
jmp 0x4aad32
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
mov esi, dword [eax]
mov dword [esp], 0x4f3068
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x2c], eax
call sub.msvcrt.dll__getpid
mov edx, dword [ebp - 0x2c]
mov dword [esp + 8], str.main
mov dword [esp + 4], 0x4b10fc
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.0049fc30
call edi
mov dword [eax], esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Handling_commandline___n
add eax, 0x40
mov dword [esp], eax
call fcn.0049fc30
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4f3068
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edx
call edi
mov dword [eax], esi
jmp 0x4aade3
cmp dword [0x4ac46c], 0
jne 0x4aaec4
mov edx, eax
mov eax, dword [eax - 4]
mov dword [ebp - 0x34], eax
sub eax, 1
mov dword [edx - 4], eax
mov eax, dword [ebp - 0x34]
test eax, eax
jg 0x4aaced
lea eax, [ebp - 0x21]
mov dword [esp], eax
call fcn.004a5860
push eax
jmp 0x4aaced
sub eax, 4
mov dword [ebp - 0x34], ecx
call fcn.004aab90
mov ecx, dword [ebp - 0x34]
jmp 0x4aaeab