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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x3ee0
call fcn.01006750
mov eax, dword [0x100913c]
push ebx
push esi
push edi
push 0x100159f
xor esi, esi
push esi
mov dword [ebp - 4], eax
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 0x10053d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001588
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
push 1
jmp 0x1005767
lea ecx, [ebp - 0x3ee0]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, esi
mov dword [ebp - 0x3e98], eax
jne 0x10053fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100156c
jmp 0x10053c7
lea eax, [ebp - 0x3ecc]
push eax
call fcn.010059e7
cmp eax, esi
je 0x1005413
push eax
push 0x100154c
jmp 0x10053c7
lea eax, [ebp - 0x3e9c]
push eax
lea eax, [ebp - 0x3e8c]
push eax
push dword [ebp - 0x3ee0]
lea eax, [ebp - 0x3ecc]
push dword [ebp - 0x3e98]
mov dword [ebp - 0x3e8c], esi
push eax
mov dword [ebp - 0x3e9c], esi
call fcn.01004465
cmp eax, 0x667
jne 0x100545c
push dword [ebp - 0x3ea8]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x1005480
cmp eax, esi
je 0x100548b
push dword [ebp - 0x3ea4]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
push eax
call fcn.010043a0
push dword [ebp - 0x3ea8]
push 0xfffffffffffffff5
call esi
push eax
call fcn.010043a0
jmp 0x10053ce
xor eax, eax
cmp dword [ebp - 0x3ecc], esi
mov dword [ebp - 0x3e88], esi
sete al
mov dword [ebp - 0x3ed4], eax
xor eax, eax
cmp dword [ebp - 0x3eac], esi
sete al
mov dword [ebp - 0x3ea0], eax
lea eax, [ebp - 0x3e94]
push eax
lea eax, [ebp - 0x3e88]
push eax
call fcn.01003e42
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x3e90], eax
lea eax, [ebx + ebx]
push eax
push 0x40
mov dword [ebp - 0x3ed0], eax
call edi
test eax, eax
mov dword [ebp - 0x3ed8], eax
je 0x100553c
push dword [ebp - 0x3ea0]
push 1
push dword [ebp - 0x3e94]
push dword [ebp - 0x3e90]
push dword [ebp - 0x3e88]
push ebx
push eax
call fcn.0100628d
push dword [ebp - 0x3ed8]
mov dword [ebp - 0x3edc], eax
call esi
cmp dword [ebp - 0x3edc], 0
mov ebx, dword [ebp - 0x3ed0]
jne 0x10054d8
lea eax, [ebx + ebx]
push eax
push 0x40
call edi
mov edi, eax
test edi, edi
jne 0x1005551
lea edi, [ebp - 0x3e84]
mov ebx, 0x1f40
mov dword [ebp - 0x3e90], 8
push 0x2710
push ebx
push edi
call fcn.010057d0
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0x3e90], eax
jne 0x100567d
cmp dword [ebp - 0x3ecc], eax
je 0x100567d
cmp dword [ebp - 0x3ec8], eax
jne 0x10055d5
push dword [ebp - 0x3e8c]
push dword [ebp - 0x3e88]
push ebx
push edi
call fcn.0100473b
xor ecx, ecx
test eax, eax
sete cl
test ecx, ecx
mov dword [ebp - 0x3e8c], ecx
je 0x10056b4
push dword [ebp - 0x3e88]
call fcn.0100248d
lea eax, [ebp - 0x3e94]
push eax
lea eax, [ebp - 0x3e88]
push eax
call fcn.01003e42
mov dword [ebp - 0x3e90], eax
xor eax, eax
jmp 0x1005687
cmp dword [ebp - 0x3ec4], eax
jne 0x10055f2
push dword [ebp - 0x3e8c]
push dword [ebp - 0x3e88]
push ebx
push edi
call fcn.0100484a
jmp 0x1005595
cmp dword [ebp - 0x3ec0], eax
jne 0x100560c
push dword [ebp - 0x3e88]
push ebx
push edi
call fcn.0100495f
jmp 0x10056b4
cmp dword [ebp - 0x3ebc], eax
jne 0x1005626
push dword [ebp - 0x3e88]
push ebx
push edi
call fcn.01005336
jmp 0x10056b4
cmp dword [ebp - 0x3eb8], eax
jne 0x100563d
push dword [ebp - 0x3e88]
push ebx
push edi
call fcn.01004fe9
jmp 0x10056b4
cmp dword [ebp - 0x3eb4], eax
jne 0x100565a
push dword [ebp - 0x3e8c]
push dword [ebp - 0x3e88]
push ebx
push edi
call fcn.01005004
jmp 0x10056b4
cmp dword [ebp - 0x3eb0], eax
jne 0x100568f
push dword [ebp - 0x3e9c]
push dword [ebp - 0x3e8c]
push dword [ebp - 0x3e88]
push ebx
push edi
call fcn.0100516d
jmp 0x10056b4
mov dword [ebp - 0x3e8c], 1
cmp dword [ebp - 0x3e8c], eax
je 0x10056b4
push dword [ebp - 0x3ea0]
push dword [ebp - 0x3ed4]
push dword [ebp - 0x3e94]
push dword [ebp - 0x3e90]
push dword [ebp - 0x3e88]
push ebx
push edi
call fcn.0100628d
push edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call fcn.010043a0
test eax, eax
mov dword [ebp - 0x3e90], eax
je 0x10056fe
and word [edi], 0
push 0x2710
push ebx
push edi
call fcn.010057d0
add esp, 0xc
push dword [ebp - 0x3e90]
push 0x14
push ebx
push edi
call fcn.0100589e
push edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call fcn.010043a0
push dword [ebp - 0x3e88]
call fcn.0100248d
push dword [ebp - 0x3e98]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x3ecc]
call esi
push dword [ebp - 0x3ec8]
call esi
push dword [ebp - 0x3ec4]
call esi
push dword [ebp - 0x3ec0]
call esi
push dword [ebp - 0x3ebc]
call esi
push dword [ebp - 0x3eb8]
call esi
push dword [ebp - 0x3eb4]
call esi
push dword [ebp - 0x3eb0]
call esi
push dword [ebp - 0x3eac]
call esi
push dword [ebp - 0x3ea8]
call esi
push 0
call dword [sym.imp.msvcrt.dll_exit]
int3