Function at 0x406cf0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
push edi
push 8
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x406d56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x406d3d
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x406d44
mov esi, 0x80004005
push 0x403bc0
push esi
call fcn.004089ba
pop ecx
pop ecx
jmp 0x406fd3
push ebx
xor ebx, ebx
inc ebx
mov eax, ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
jle 0x406f5e
mov edi, dword [sym.imp.KERNEL32.dll_CompareStringW]
mov ecx, dword [ebp - 0xc]
lea esi, [ecx + eax*4]
mov eax, dword [esi]
movzx ecx, word [eax]
cmp ecx, 0x2d
je 0x406d87
cmp ecx, 0x2f
jne 0x406f4b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x406dd0
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x403bdc
push 2
add eax, 2
push eax
push ebx
push 0x7f
call edi
cmp eax, 2
jne 0x406dd0
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
add eax, 6
push eax
xor eax, eax
call fcn.00408cef
mov esi, eax
test esi, esi
jns 0x406f4b
push 0x403be4
jmp 0x406f75
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x406e03
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x403c00
push 2
add eax, 2
push eax
push ebx
push 0x7f
call edi
cmp eax, 2
jne 0x406e03
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], ebx
mov ecx, dword [esi]
add ecx, 6
jmp 0x406e34
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 9
jle 0x406e53
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x403c30
push 8
add eax, 2
push eax
push ebx
push 0x7f
call edi
cmp eax, 2
jne 0x406e53
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], ebx
mov ecx, dword [esi]
add ecx, 0x12
push ecx
lea ecx, [eax + 8]
xor eax, eax
call fcn.00408cef
mov esi, eax
test esi, esi
jns 0x406f4b
push 0x403c08
jmp 0x406f75
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x406ea0
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x403c44
push 2
add eax, 2
push eax
push ebx
push 0x7f
call edi
cmp eax, 2
jne 0x406ea0
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
add eax, 6
push eax
add ecx, 4
xor eax, eax
call fcn.00408cef
mov esi, eax
test esi, esi
jns 0x406f4b
push 0x4034c0
jmp 0x406f75
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jne 0x406ec5
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x403c4c
push ebx
add eax, 2
push eax
push ebx
push 0x7f
call edi
cmp eax, 2
je 0x406eeb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 8
jne 0x406ef3
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x403c50
push 7
add eax, 2
push eax
push ebx
push 0x7f
call edi
cmp eax, 2
jne 0x406ef3
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], ebx
jmp 0x406f4b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jne 0x406f1d
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x403c60
push ebx
add eax, 2
push eax
push ebx
push 0x7f
call edi
cmp eax, 2
jne 0x406f1d
mov eax, dword [ebp + 8]
jmp 0x406f48
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jne 0x406f4b
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x403c64
push ebx
add eax, 2
push eax
push ebx
push 0x7f
call edi
cmp eax, 2
jne 0x406f4b
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 4]
jl 0x406d6e
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x406f82
mov eax, esi
call fcn.00409d0e
mov esi, eax
test esi, esi
jns 0x406f7f
push 0x403c68
push esi
call fcn.004089ba
pop ecx
pop ecx
jmp 0x406fc9
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
movzx eax, word [ecx]
cmp eax, 0x22
jne 0x406fa0
xor eax, eax
test edx, edx
sete al
push 0x22
add ecx, 2
mov edx, eax
pop eax
jmp 0x406fa8
add ecx, 2
test ax, ax
je 0x406fc0
test edx, edx
jne 0x406f87
cmp ax, 0x20
je 0x406fb8
cmp ax, 9
jne 0x406f87
add ecx, 0xfffffffe
mov dword [esi + 0xc], ecx
jmp 0x406fc7
mov dword [esi + 0xc], 0x403c8c
xor esi, esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 4