Function at 0x1003cc6
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
inc edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
mov eax, dword [ebp + 8]
shl eax, 2
mov dword [ebp - 0x34], eax
add eax, 4
push eax
push 0x40
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x28], eax
cmp eax, esi
jne 0x1003d12
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1003f8e
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
cmp word [ebx], si
je 0x1003f84
mov eax, ebx
lea ecx, [eax + 2]
push 2
mov dword [ebp - 8], ecx
lea ecx, [eax + 4]
mov dword [ebp - 0x10], edi
pop edi
add eax, 0xfffffffe
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
movzx eax, word [ebx]
cmp ax, 0x20
je 0x1003e8d
cmp ax, 9
je 0x1003e8d
cmp ax, 0x22
jne 0x1003d9f
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
test cx, cx
jne 0x1003d60
sub eax, edx
xor edx, edx
sar eax, 1
cmp esi, edx
je 0x1003dab
mov ecx, dword [ebp - 0x20]
cmp word [ecx], 0x5c
jne 0x1003dab
lea eax, [eax + eax + 2]
push eax
push ebx
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
sub dword [ebp - 0x1c], edi
sub dword [ebp - 0x24], edi
sub dword [ebp - 0x20], edi
add esp, 0xc
dec esi
dec dword [ebp - 0x10]
sub ebx, edi
sub dword [ebp - 8], edi
mov dword [ebp - 0x18], 1
jmp 0x1003ef6
cmp dword [ebp - 0x14], edx
je 0x1003e37
cmp dword [ebp - 0x30], esi
jne 0x1003de0
cmp eax, 1
je 0x1003dd0
mov edx, dword [ebp - 8]
movzx ecx, word [edx]
cmp cx, 0x20
je 0x1003dd0
cmp cx, 9
jne 0x1003de3
xor eax, eax
and dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
mov word [ebx], ax
jmp 0x1003ef6
mov edx, dword [ebp - 8]
cmp dword [ebp - 0x18], 0
je 0x1003e4a
cmp eax, edi
jne 0x1003e05
cmp word [edx], 0x22
jne 0x1003e4a
push 4
push edx
push ebx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
jmp 0x1003ef6
cmp eax, 3
jb 0x1003e4a
cmp word [edx], 0x22
jne 0x1003e4a
mov ecx, dword [ebp - 0x1c]
movzx ecx, word [ecx]
cmp cx, 0x20
je 0x1003e31
cmp cx, 9
je 0x1003e2b
and dword [ebp - 0x14], 0
add eax, eax
push eax
jmp 0x1003df5
cmp cx, 0x20
jne 0x1003e4a
cmp cx, 9
jmp 0x1003e44
cmp dword [ebp - 0x18], edx
je 0x1003e4a
cmp eax, 1
jne 0x1003e4a
cmp dword [ebp - 0xc], edx
je 0x1003ef6
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
sete cl
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x1003e69
cmp dword [ebp - 0x18], 0
jne 0x1003e69
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x30], esi
add eax, eax
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.msvcrt.dll_memmove]
sub dword [ebp - 0x1c], edi
sub dword [ebp - 0x24], edi
sub dword [ebp - 0x20], edi
add esp, 0xc
dec esi
dec dword [ebp - 0x10]
sub ebx, edi
sub dword [ebp - 8], edi
jmp 0x1003ef6
cmp dword [ebp - 0x14], 0
jne 0x1003ef6
and dword [ebp - 0x18], 0
cmp esi, dword [ebp - 4]
je 0x1003ef0
xor eax, eax
mov word [ebx], ax
mov eax, esi
sub eax, dword [ebp - 4]
lea edi, [eax + eax + 2]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov dword [ecx + edx*4], eax
test eax, eax
je 0x1003f95
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx + edx*2]
push ecx
shr edi, 1
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
mov eax, dword [ebp - 0x10]
add esp, 0xc
inc dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
ja 0x1003f3a
push 2
pop edi
jmp 0x1003ef6
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
add dword [ebp - 0x1c], edi
add dword [ebp - 0x24], edi
add dword [ebp - 0x20], edi
add dword [ebp - 8], edi
inc esi
inc dword [ebp - 0x10]
add ebx, edi
cmp word [ebx], 0
jne 0x1003d3e
cmp esi, dword [ebp - 4]
je 0x1003f3e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jae 0x1003f3a
sub esi, dword [ebp - 4]
lea esi, [esi + esi + 2]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword [edx + ecx*4], eax
jmp 0x1003f6a
push 0x57
jmp 0x1003f97
cmp dword [ebp - 0x14], 0
je 0x1003f84
cmp dword [ebp - 0x30], esi
jne 0x1003f84
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jae 0x1003f3a
sub esi, dword [ebp - 4]
lea esi, [esi + esi + 2]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov dword [ecx + edx*4], eax
test eax, eax
je 0x1003f95
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx + edx*2]
push ecx
shr esi, 1
push esi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
and dword [ecx + eax], 0
pop edi
pop esi
pop ebx
leave
ret 4
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
cmp dword [ebp + 8], esi
jbe 0x1003fbd
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x1003fb7
push eax
call edi
inc esi
cmp esi, dword [ebp + 8]
jb 0x1003faa
push dword [ebp - 0x28]
call edi
jmp 0x1003d0b