Function at 0x10019ce
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1009320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x1001258
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
push ebx
push ebx
stosw word es:[edi], ax
push 1
push ebx
mov dword [ebp - 0x18], ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001a18
call edi
push eax
call fcn.010053d5
mov eax, dword [ebp + 8]
mov dword [0x100ba0c], eax
mov eax, dword [ebp + 0xc]
mov dword [0x100ba10], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov esi, eax
push 0x100dea0
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
cmp esi, ebx
je 0x1001a5b
push esi
push 0x1001254
lea eax, [ebp - 0x10]
push 0xc
push eax
call sub.msvcrt.dll_sprintf_s
add esp, 0x10
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
mov dword [0x100de7c], eax
cmp eax, 0xffffffff
jne 0x1001a84
call edi
push eax
call fcn.0100544f
push 0xfffffffffffffff4
call esi
mov dword [0x100deb4], eax
cmp eax, 0xffffffff
jne 0x1001a9a
call edi
push eax
call fcn.0100544f
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.01005bc3
mov dword [0x100de80], eax
cmp eax, ebx
jne 0x1001aba
push 8
call fcn.0100544f
add dword [0x100de80], 4
dec dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
je 0x1001be3
mov edi, dword [sym.imp.msvcrt.dll__wcsnicmp]
mov ebx, 0xdaf
mov eax, dword [0x100de80]
mov ecx, dword [eax]
cmp word [ecx], 0x2f
jne 0x1001ba1
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1001af1
sub eax, esi
sar eax, 1
movzx eax, ax
cmp ax, 1
jle 0x1001b72
movsx esi, ax
push esi
push ecx
push str._YES
call edi
add esp, 0xc
test eax, eax
jne 0x1001b3d
cmp dword [0x100ba08], 2
jne 0x1001b2e
push 0xdb6
call fcn.0100544f
mov dword [0x100ba08], 1
jmp 0x1001bce
mov eax, dword [0x100de80]
push esi
push dword [eax]
push 0x10093d4
call edi
add esp, 0xc
test eax, eax
jne 0x1001b72
cmp dword [0x100ba08], 1
jne 0x1001b66
push 0xdb6
call fcn.0100544f
mov dword [0x100ba08], 2
jmp 0x1001bce
mov eax, 0x100
cmp word [ebp - 0x1c], ax
jge 0x1001bac
movsx eax, word [ebp - 0x1c]
mov ecx, dword [0x100de80]
mov ecx, dword [ecx]
inc dword [ebp - 0x1c]
mov dword [eax*4 + 0x100b3e0], ecx
mov cx, word [ebp - 0x18]
mov word [eax*2 + 0x100b7e0], cx
jmp 0x1001bce
mov eax, 0x100
cmp word [ebp - 0x14], ax
jl 0x1001bb4
push ebx
call fcn.0100544f
jmp 0x1001bce
movsx eax, word [ebp - 0x14]
inc dword [ebp - 0x14]
mov dword [eax*4 + 0x100ade0], ecx
mov cx, word [ebp - 0x18]
mov word [eax*2 + 0x100b1e0], cx
add dword [0x100de80], 4
inc dword [ebp - 0x18]
dec dword [ebp + 8]
jne 0x1001adb
xor ebx, ebx
push ebx
push 0x2000
push 0x100eec0
call fcn.010018d5
push ebx
push 0x1000
push 0x100dec0
call fcn.010018d5
push 0x4000
push dword [sym.imp.msvcrt.dll__iob]
call dword [sym.imp.msvcrt.dll__fileno]
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__setmode]
pop ecx
pop ecx
call fcn.010059ef
push ebx
call fcn.01004f08
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0100492b
leave
ret