Function at 0x10019b1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, 0x1001218
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [0x100b9ec], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [0x100b9f0], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov esi, eax
push 0x100d340
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
cmp esi, 0x3a4
je 0x1001a1d
cmp esi, 0x3a8
je 0x1001a1d
cmp esi, 0x3b4
jbe 0x1001a16
cmp esi, 0x3b6
jbe 0x1001a1d
push 0x409
jmp 0x1001a2e
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 0x1001a4b
push esi
lea eax, [ebp - 0x14]
push 0x1001214
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x14]
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 [0x100d320], eax
jne 0x1001a7a
call edi
push eax
call fcn.01004bff
push 0xfffffffffffffff4
call esi
cmp eax, 0xffffffff
mov dword [0x100d354], eax
jne 0x1001a90
call edi
push eax
call fcn.01004bff
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.01005268
cmp eax, ebx
mov dword [0x100d324], eax
jne 0x1001ab0
push 8
call fcn.01004bff
add dword [0x100d324], 4
dec dword [ebp + 8]
mov dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
je 0x1001bd7
mov edi, dword [sym.imp.msvcrt.dll__wcsnicmp]
mov ebx, 0xdaf
mov eax, dword [0x100d324]
mov eax, dword [eax]
cmp word [eax], 0x2f
jne 0x1001b92
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
cmp ax, 1
pop ecx
jle 0x1001b60
movsx esi, ax
mov eax, dword [0x100d324]
push esi
push dword [eax]
push str._YES
call edi
add esp, 0xc
test eax, eax
jne 0x1001b2b
cmp word [0x100b9e8], 2
jne 0x1001b1d
push 0xdb6
call fcn.01004bff
mov word [0x100b9e8], 1
jmp 0x1001bc2
mov eax, dword [0x100d324]
push esi
push dword [eax]
push 0x10093bc
call edi
add esp, 0xc
test eax, eax
jne 0x1001b60
cmp word [0x100b9e8], 1
jne 0x1001b55
push 0xdb6
call fcn.01004bff
mov word [0x100b9e8], 2
jmp 0x1001bc2
cmp word [ebp + 0xc], 0x100
jl 0x1001b6e
push ebx
call fcn.01004bff
movsx eax, word [ebp + 0xc]
mov ecx, dword [0x100d324]
mov ecx, dword [ecx]
inc dword [ebp + 0xc]
mov dword [eax*4 + 0x100b3c0], ecx
mov cx, word [ebp - 8]
mov word [eax*2 + 0x100b7c0], cx
jmp 0x1001bc2
cmp word [ebp - 4], 0x100
jl 0x1001ba0
push ebx
call fcn.01004bff
movsx eax, word [ebp - 4]
mov ecx, dword [0x100d324]
mov ecx, dword [ecx]
inc dword [ebp - 4]
mov dword [eax*4 + 0x100adc0], ecx
mov cx, word [ebp - 8]
mov word [eax*2 + 0x100b1c0], cx
add dword [0x100d324], 4
inc dword [ebp - 8]
dec dword [ebp + 8]
jne 0x1001ad1
xor ebx, ebx
push ebx
push 0x2000
push 0x100db60
call fcn.010018c0
push ebx
push 0x800
push 0x100d360
call fcn.010018c0
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.010050c7
push ebx
call fcn.01004793
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret