Function at 0x406350
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, ecx
mov edx, dword [esi + 8]
push edi
lea edi, [esi + 4]
push ecx
mov ecx, dword [edi]
mov dword [ebp - 0x18], edi
call fcn.004078f0
mov eax, dword [edi]
lea ecx, [esi + 0x14]
add esp, 4
mov dword [edi + 4], eax
lea eax, [ebp + 8]
push eax
call fcn.00403e50
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x14]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
or ebx, 0xffffffff
mov dword [ebp - 0x28], eax
test eax, eax
je 0x406752
call fcn.004031c0
test eax, eax
je 0x406777
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
call fcn.004031c0
test eax, eax
je 0x406777
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
xor eax, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x24], eax
jle 0x406714
nop dword [eax]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ecx + eax*4]
call fcn.004031c0
test eax, eax
je 0x406777
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x14]
push esi
mov dword [ebp - 0x14], eax
call fcn.004034f0
test al, al
jne 0x406439
test esi, esi
jne 0x406415
xor ecx, ecx
jmp 0x40642f
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406420
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00403760
mov esi, dword [ebp - 0x14]
push 0x4da154
push esi
call fcn.004a4392
mov edi, eax
add esp, 8
test edi, edi
je 0x4065df
sub edi, esi
sar edi, 1
cmp edi, 0xffffffff
je 0x4065df
push edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407330
push eax
lea ecx, [ebp - 0x10]
call fcn.00403e50
mov edx, dword [ebp - 0x2c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406491
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x10]
call fcn.004074c0
lea ecx, [ebp - 0x10]
call fcn.004075c0
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x14]
sub eax, edi
dec eax
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004073f0
push eax
lea ecx, [ebp - 0xc]
call fcn.00403e50
mov edx, dword [ebp - 0x30]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4064d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xc]
call fcn.004074c0
lea ecx, [ebp - 0xc]
call fcn.004075c0
push 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xc]
call fcn.00407330
mov eax, dword [eax]
cmp dword [eax - 0xc], 1
jne 0x406507
cmp word [eax], 0x22
mov byte [ebp - 5], 1
je 0x40650b
mov byte [ebp - 5], 0
mov edx, dword [ebp - 0x34]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406525
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 5], 0
je 0x406562
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004073f0
push eax
lea ecx, [ebp - 0xc]
call fcn.00403e50
mov edx, dword [ebp - 0x38]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406562
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0xc]
call fcn.004073f0
mov eax, dword [eax]
cmp dword [eax - 0xc], 1
jne 0x406582
cmp word [eax], 0x22
mov byte [ebp - 5], 1
je 0x406586
mov byte [ebp - 5], 0
mov edx, dword [ebp - 0x3c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4065a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 5], 0
je 0x40660a
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00407330
push eax
lea ecx, [ebp - 0xc]
call fcn.00403e50
mov edx, dword [ebp - 0x40]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40660a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40660a
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403e50
lea ecx, [ebp - 0x10]
call fcn.004074c0
lea ecx, [ebp - 0x10]
call fcn.004075c0
push 0
push 0x4d9ea8
lea ecx, [ebp - 0xc]
call fcn.00403760
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403f10
call fcn.004031c0
test eax, eax
je 0x406777
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x48], eax
call fcn.004031c0
test eax, eax
je 0x406777
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403e50
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x44]
call fcn.00403e50
mov eax, dword [ebp - 0x18]
mov edi, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x40668d
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call fcn.00403f10
lea eax, [ebp - 0x44]
push eax
lea ecx, [edi + 4]
call fcn.00403f10
mov edi, dword [ebp - 0x18]
add dword [edi + 4], 8
jmp 0x406699
lea ecx, [ebp - 0x48]
push ecx
push edi
mov ecx, eax
call fcn.004076b0
mov edx, dword [ebp - 0x44]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4066b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4066cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4066e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4066fe
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x24]
jl 0x4063e0
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406734
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40674b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x406754
xor esi, esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40676c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402f10
int3