Function at 0x1004e5a
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101d78c]
push ebx
push esi
push edi
mov esi, 0x10015dc
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
movsb byte es:[edi], byte [esi]
xor eax, eax
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [0x102092c], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [0x1020930], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov esi, eax
push 0x1023160
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
cmp esi, 0x3a4
je 0x1004ed0
cmp esi, 0x3a8
je 0x1004ed0
cmp esi, 0x3b4
jbe 0x1004ec9
cmp esi, 0x3b6
jbe 0x1004ed0
push 0x409
jmp 0x1004ee1
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
and eax, 0x3ff
or eax, 0x400
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
cmp esi, ebx
je 0x1004efe
push esi
lea eax, [ebp - 0x10]
push 0x10015d8
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.msvcrt.dll_setlocale]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
pop ecx
pop ecx
push 0xfffffffffffffff5
call esi
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1023148], eax
jne 0x1004f2d
call edi
push eax
call fcn.010108fa
push 0xfffffffffffffff4
call esi
cmp eax, 0xffffffff
mov dword [0x1023174], eax
jne 0x1004f43
call edi
push eax
call fcn.010108fa
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.01012e47
cmp eax, ebx
mov dword [0x102314c], eax
jne 0x1004f63
push 8
call fcn.010108fa
add dword [0x102314c], 4
dec dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
je 0x100508a
mov edi, dword [sym.imp.msvcrt.dll__wcsnicmp]
mov ebx, 0xdaf
mov eax, dword [0x102314c]
mov eax, dword [eax]
cmp word [eax], 0x2f
jne 0x1005045
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
cmp ax, 1
pop ecx
jle 0x1005013
movsx esi, ax
mov eax, dword [0x102314c]
push esi
push dword [eax]
push str._YES
call edi
add esp, 0xc
test eax, eax
jne 0x1004fde
cmp word [0x1020928], 2
jne 0x1004fd0
push 0xdb6
call fcn.010108fa
mov word [0x1020928], 1
jmp 0x1005075
mov eax, dword [0x102314c]
push esi
push dword [eax]
push 0x101d828
call edi
add esp, 0xc
test eax, eax
jne 0x1005013
cmp word [0x1020928], 1
jne 0x1005008
push 0xdb6
call fcn.010108fa
mov word [0x1020928], 2
jmp 0x1005075
cmp word [ebp - 0x1c], 0x100
jl 0x1005021
push ebx
call fcn.010108fa
movsx eax, word [ebp - 0x1c]
mov ecx, dword [0x102314c]
mov ecx, dword [ecx]
inc dword [ebp - 0x1c]
mov dword [eax*4 + 0x1020300], ecx
mov cx, word [ebp - 0x18]
mov word [eax*2 + 0x1020700], cx
jmp 0x1005075
cmp word [ebp - 0x14], 0x100
jl 0x1005053
push ebx
call fcn.010108fa
movsx eax, word [ebp - 0x14]
mov ecx, dword [0x102314c]
mov ecx, dword [ecx]
inc dword [ebp - 0x14]
mov dword [eax*4 + 0x101fd00], ecx
mov cx, word [ebp - 0x18]
mov word [eax*2 + 0x1020100], cx
add dword [0x102314c], 4
inc dword [ebp - 0x18]
dec dword [ebp + 8]
jne 0x1004f84
xor ebx, ebx
push ebx
push 0x2000
push 0x1024180
call fcn.01004d5b
push ebx
push 0x1000
push 0x1023180
call fcn.01004d5b
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x4000
push dword [eax + 0x10]
call dword [sym.imp.msvcrt.dll__setmode]
pop ecx
pop ecx
call fcn.01012c9a
push ebx
call fcn.010103d5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.0100fd6e
leave
ret