Function at 0x10005610
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ec
push edi
mov edi, dword [ebp + 8]
mov dword [edi + 0x3064], 0xf
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
jne 0x10005657
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Error_call_CommandLineToArgvW__code:__d_n
call fcn.10006110
add esp, 8
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 1
mov dword [ebp + 8], 1
jle 0x10005956
push ebx
lea ebx, [eax + 4]
push esi
nop dword [eax]
push 0x3e8
lea eax, [ebp - 0x3ec]
push 0
push eax
call fcn.10010260
lea eax, [ebp - 0x3ec]
push eax
mov eax, dword [ebx]
add eax, 2
push eax
call fcn.100081e0
add esp, 0x14
lea ecx, [ebp - 0x3ec]
mov edx, str.NOMUTEX
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100056c8
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100056a8
mov dword [edi + 0x17c], 1
jmp 0x1000592e
lea eax, [ebp - 0x3ec]
cmp dword [eax], 0x4f004c
jne 0x100056f4
cmp dword [eax + 4], 0x47
jne 0x100056f4
push edi
mov dword [edi + 0x180], 1
call fcn.100062a0
add esp, 4
jmp 0x1000592e
lea ecx, [ebp - 0x3ec]
mov edx, str.TARGET
mov esi, 0xa
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10005763
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10005704
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x10005763
inc dword [ebp + 8]
add ebx, 4
xor ecx, ecx
mov eax, dword [ebx]
nop word [eax + eax]
mov al, byte [eax]
lea ecx, [ecx + 1]
mov byte [edi + ecx + 0x18f], al
mov eax, dword [ebx]
cmp word [eax + ecx*2], 0
lea eax, [eax + ecx*2]
jne 0x10005730
cmp byte [ecx + edi + 0x18f], 0x5c
je 0x1000592e
mov byte [edi + ecx + 0x190], 0x5c
jmp 0x1000592e
lea eax, [ebp - 0x3ec]
cmp dword [eax], 0x440049
jne 0x100057a1
movzx eax, word [eax + 4]
test ax, ax
jne 0x100057a1
inc dword [ebp + 8]
add ebx, 4
xor ecx, ecx
mov eax, dword [ebx]
mov al, byte [eax]
lea ecx, [ecx + 1]
mov byte [edi + ecx + 0x294], al
mov eax, dword [ebx]
cmp word [eax + ecx*2], 0
lea eax, [eax + ecx*2]
jne 0x10005784
jmp 0x1000592e
lea ecx, [ebp - 0x3ec]
mov edx, str.CONSOLE
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10005818
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100057b1
mov dword [edi + 0x184], 1
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100057ec
call esi
push eax
push str.____Error_call_AllocConsole__code:__d_n
call fcn.10006110
add esp, 8
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 0x39c], eax
cmp eax, 0xffffffff
jne 0x1000592e
call esi
push eax
push str.____Error_call_GetStdHandle__code:__d_n
call fcn.10006110
add esp, 8
jmp 0x1000592e
lea ecx, [ebp - 0x3ec]
mov edx, str.PROCOFF
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10005848
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10005828
mov dword [edi + 0x188], 1
jmp 0x1000592e
lea ecx, [ebp - 0x3ec]
mov edx, str.UNCOFF
mov esi, 0xa
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10005880
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10005858
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x10005880
mov dword [edi + 0x18c], 1
jmp 0x1000592e
lea eax, [ebp - 0x3ec]
cmp dword [eax], 0x490053
jne 0x1000592e
cmp dword [eax + 4], 0x45005a
jne 0x1000592e
movzx eax, word [eax + 8]
test ax, ax
jne 0x1000592e
mov eax, dword [ebx + 4]
add ebx, 4
inc dword [ebp + 8]
movzx ecx, word [eax]
add ecx, 0xffffffd0
mov dword [edi + 0x3064], ecx
mov eax, dword [ebx]
movzx eax, word [eax + 2]
test ax, ax
je 0x10005909
cmp eax, 0x30
jb 0x1000594d
cmp eax, 0x39
ja 0x1000594d
lea ecx, [ecx + ecx*4]
lea ecx, [ecx - 0x18]
lea ecx, [eax + ecx*2]
mov dword [edi + 0x3064], ecx
mov eax, dword [ebx]
movzx eax, word [eax + 4]
test ax, ax
je 0x10005909
cmp eax, 0x30
jb 0x1000594d
cmp eax, 0x39
ja 0x1000594d
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*2]
add eax, 0xffffffd0
mov dword [edi + 0x3064], eax
mov eax, dword [edi + 0x3064]
test eax, eax
jg 0x1000591f
mov dword [edi + 0x3064], 0xf
jmp 0x1000592e
cmp eax, 0x64
jle 0x1000592e
mov dword [edi + 0x3064], 0x64
mov eax, dword [ebp + 8]
add ebx, 4
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebp - 4]
jl 0x10005670
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret