Function at 0x1002c9c
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
xor ebx, ebx
xor esi, esi
inc ebx
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, 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], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, esi
mov dword [ebp - 0x28], eax
jne 0x1002ce6
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1002f82
cmp word [edi], si
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
je 0x1002f44
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 2]
push 2
mov dword [ebp - 8], ecx
lea ecx, [eax + 4]
mov dword [ebp - 0x10], ebx
pop ebx
add eax, 0xfffffffe
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
mov ax, word [edi]
cmp ax, 0x20
je 0x1002e57
cmp ax, 9
je 0x1002e57
cmp ax, 0x22
jne 0x1002d69
push edi
call dword [sym.imp.ntdll.dll_wcslen]
xor edx, edx
cmp esi, edx
pop ecx
je 0x1002d75
mov ecx, dword [ebp - 0x20]
cmp word [ecx], 0x5c
jne 0x1002d75
lea eax, [eax + eax + 2]
push eax
push edi
push ecx
call dword [sym.imp.ntdll.dll_memmove]
sub dword [ebp - 0x1c], ebx
sub dword [ebp - 0x24], ebx
sub dword [ebp - 0x20], ebx
add esp, 0xc
dec esi
dec dword [ebp - 0x10]
sub edi, ebx
sub dword [ebp - 8], ebx
mov dword [ebp - 0x18], 1
jmp 0x1002eb9
cmp dword [ebp - 0x14], edx
je 0x1002e01
cmp dword [ebp - 0x30], esi
jne 0x1002daa
cmp eax, 1
je 0x1002d9a
mov ecx, dword [ebp - 8]
mov dx, word [ecx]
cmp dx, 0x20
je 0x1002d9a
cmp dx, 9
jne 0x1002dad
and word [edi], 0
and dword [ebp - 0x14], 0
mov dword [ebp - 4], esi
jmp 0x1002eb9
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x18], 0
je 0x1002e14
cmp eax, ebx
jne 0x1002dc1
cmp word [ecx], 0x22
jne 0x1002e14
push 4
jmp 0x1002de5
cmp eax, 3
jb 0x1002e14
cmp word [ecx], 0x22
jne 0x1002e14
mov edx, dword [ebp - 0x1c]
mov dx, word [edx]
cmp dx, 0x20
je 0x1002dfb
cmp dx, 9
je 0x1002df5
and dword [ebp - 0x14], 0
add eax, eax
push eax
push ecx
push edi
call dword [sym.imp.ntdll.dll_memmove]
add esp, 0xc
jmp 0x1002eb9
cmp dx, 0x20
jne 0x1002e14
cmp dx, 9
jmp 0x1002e0e
cmp dword [ebp - 0x18], edx
je 0x1002e14
cmp eax, 1
jne 0x1002e14
cmp dword [ebp - 0xc], edx
je 0x1002eb9
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
sete cl
test ecx, ecx
mov dword [ebp - 0x14], ecx
je 0x1002e33
cmp dword [ebp - 0x18], 0
jne 0x1002e33
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x30], esi
add eax, eax
push eax
push dword [ebp - 8]
push edi
call dword [sym.imp.ntdll.dll_memmove]
sub dword [ebp - 0x1c], ebx
sub dword [ebp - 0x24], ebx
sub dword [ebp - 0x20], ebx
add esp, 0xc
dec esi
dec dword [ebp - 0x10]
sub edi, ebx
sub dword [ebp - 8], ebx
jmp 0x1002eb9
cmp dword [ebp - 0x14], 0
jne 0x1002eb9
and dword [ebp - 0x18], 0
cmp esi, dword [ebp - 4]
je 0x1002eb3
and word [edi], 0
mov eax, esi
sub eax, dword [ebp - 4]
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov dword [ecx + edx*4], eax
je 0x1002f55
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx + edx*2]
push ecx
push eax
call dword [sym.imp.ntdll.dll_wcscpy]
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
pop ecx
pop ecx
ja 0x1002f10
jmp 0x1002eb9
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
add dword [ebp - 0x1c], ebx
add dword [ebp - 0x24], ebx
add dword [ebp - 0x20], ebx
add dword [ebp - 8], ebx
inc esi
inc dword [ebp - 0x10]
add edi, ebx
cmp word [edi], 0
jne 0x1002d13
cmp esi, dword [ebp - 4]
je 0x1002efd
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jae 0x1002f10
sub esi, dword [ebp - 4]
lea eax, [esi + esi + 2]
push eax
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 0x1002f2d
cmp dword [ebp - 0x14], 0
je 0x1002f44
cmp dword [ebp - 0x30], esi
jne 0x1002f44
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jb 0x1002f14
push 0x57
jmp 0x1002f57
sub esi, dword [ebp - 4]
lea eax, [esi + esi + 2]
push eax
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 0x1002f55
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx + edx*2]
push ecx
push eax
call dword [sym.imp.ntdll.dll_wcscpy]
pop ecx
pop ecx
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 0x1002f7d
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x1002f77
push eax
call edi
inc esi
cmp esi, dword [ebp + 8]
jb 0x1002f6a
push dword [ebp - 0x28]
call edi
xor eax, eax
jmp 0x1002f4e