Function at 0x100485d
Capabilities:
Accept command line arguments
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3edc
call fcn.01005670
push ebx
push esi
push edi
push 0x1001553
xor esi, esi
push esi
mov ebx, 0x200
call dword [sym.imp.msvcrt.dll_setlocale]
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, esi
jne 0x10048a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100153c
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
push 1
jmp 0x1004b42
lea ecx, [ebp - 0x54]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x10048c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001520
jmp 0x1004898
lea eax, [ebp - 0x48]
push eax
call fcn.01004cdd
cmp eax, esi
je 0x10048db
push eax
push 0x1001500
jmp 0x1004898
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x54]
lea eax, [ebp - 0x48]
push dword [ebp - 0x14]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0x18], esi
call fcn.01003b55
cmp eax, 0x667
jne 0x100490c
push dword [ebp - 0x24]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x100492a
cmp eax, esi
je 0x1004935
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
push eax
call fcn.01003aa7
push dword [ebp - 0x24]
push 0xfffffffffffffff5
call esi
push eax
call fcn.01003aa7
jmp 0x100489f
xor eax, eax
cmp dword [ebp - 0x48], esi
mov dword [ebp - 4], esi
sete al
mov dword [ebp - 0x50], eax
xor eax, eax
cmp dword [ebp - 0x28], esi
sete al
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
call fcn.010035e9
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xc], eax
lea eax, [ebx + ebx]
push eax
push 0x40
mov dword [ebp - 0x4c], eax
call edi
test eax, eax
mov dword [ebp - 0x58], eax
je 0x10049b0
push dword [ebp - 0x1c]
push 1
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 4]
push ebx
push eax
call fcn.0100534a
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
call esi
cmp dword [ebp - 0x5c], 0
mov ebx, dword [ebp - 0x4c]
jne 0x100496a
lea eax, [ebx + ebx]
push eax
push 0x40
call edi
mov edi, eax
test edi, edi
jne 0x10049c2
lea edi, [ebp - 0x3edc]
mov ebx, 0x1f40
mov dword [ebp - 0xc], 8
push 0x2710
push ebx
push edi
call fcn.01004b92
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0xc], eax
jne 0x1004a97
cmp dword [ebp - 0x48], eax
je 0x1004a97
cmp dword [ebp - 0x44], eax
jne 0x1004a25
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
push edi
call fcn.01003e1c
xor ecx, ecx
test eax, eax
sete cl
test ecx, ecx
mov dword [ebp - 8], ecx
je 0x1004ab9
push dword [ebp - 4]
call fcn.010023b0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
call fcn.010035e9
mov dword [ebp - 0xc], eax
xor eax, eax
jmp 0x1004a9e
cmp dword [ebp - 0x40], eax
jne 0x1004a39
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
push edi
call fcn.01003f24
jmp 0x10049f7
cmp dword [ebp - 0x3c], eax
jne 0x1004a4a
push dword [ebp - 4]
push ebx
push edi
call fcn.01004032
jmp 0x1004ab9
cmp dword [ebp - 0x38], eax
jne 0x1004a5b
push dword [ebp - 4]
push ebx
push edi
call fcn.01004077
jmp 0x1004ab9
cmp dword [ebp - 0x34], eax
jne 0x1004a6c
push dword [ebp - 4]
push ebx
push edi
call fcn.010045d8
jmp 0x1004ab9
cmp dword [ebp - 0x30], eax
jne 0x1004a80
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
push edi
call fcn.010045ea
jmp 0x1004ab9
cmp dword [ebp - 0x2c], eax
jne 0x1004aa3
push dword [ebp - 0x18]
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
push edi
call fcn.0100474a
jmp 0x1004ab9
mov dword [ebp - 8], 1
cmp dword [ebp - 8], eax
je 0x1004ab9
push dword [ebp - 0x1c]
push dword [ebp - 0x50]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 4]
push ebx
push edi
call fcn.0100534a
push edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call fcn.01003aa7
test eax, eax
mov dword [ebp - 0xc], eax
je 0x1004afd
and word [edi], 0
push 0x2710
push ebx
push edi
call fcn.01004b92
add esp, 0xc
push dword [ebp - 0xc]
push 0x14
push ebx
push edi
call fcn.01004c3c
push edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call fcn.01003aa7
push dword [ebp - 4]
call fcn.010023b0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x48]
call esi
push dword [ebp - 0x44]
call esi
push dword [ebp - 0x40]
call esi
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x38]
call esi
push dword [ebp - 0x34]
call esi
push dword [ebp - 0x30]
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
push 0
call dword [sym.imp.msvcrt.dll_exit]
int3