Function at 0x402ff4
Capabilities:
Accept command line arguments
Get common file path
Query environment variable

Disassembly:
mov eax, 0x409268
call fcn.00404738
sub esp, 0x12c
push ebx
push esi
mov esi, 0xfe
push edi
lea eax, [ebp - 0x138]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x138]
mov ecx, 0x40c858
push eax
call fcn.004010a7
lea eax, [ebp - 0x138]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x138]
mov ecx, 0x40c838
push eax
call fcn.004010a7
lea eax, [ebp - 0x138]
push esi
push eax
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x138]
mov ecx, 0x40c820
push eax
call fcn.004010a7
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
cmp byte [edi], 0x22
jne 0x4030af
push edi
xor ebx, ebx
xor esi, esi
call fcn.004042d0
test eax, eax
pop ecx
jbe 0x4030a5
mov al, byte [esi + edi + 1]
inc esi
cmp al, 0x22
je 0x4030a5
push edi
mov byte [ebp + esi - 0x139], al
call fcn.004042d0
cmp esi, eax
pop ecx
jb 0x40308a
and byte [ebp + esi - 0x139], 0
jmp 0x4030c0
lea eax, [ebp - 0x138]
push edi
push eax
call fcn.004041e0
pop ecx
xor ebx, ebx
pop ecx
lea eax, [ebp - 0x138]
mov ecx, 0x40c810
push eax
call fcn.004010a7
lea eax, [ebp - 0x138]
push eax
call fcn.004042d0
pop ecx
cmp byte [ebp + eax - 0x138], 0x5c
je 0x4030ef
cmp eax, ebx
jbe 0x4030ef
dec eax
jmp 0x4030de
and byte [ebp + eax - 0x138], 0
lea eax, [ebp - 0x138]
push eax
mov ecx, 0x40c7e0
call fcn.004010a7
mov esi, 0x40c860
push 0x40c7e0
mov ecx, esi
call fcn.0040106a
lea eax, [ebp - 0x14]
push 0x40c1bc
push eax
mov ecx, esi
call fcn.004011a5
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040106a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], ebx
je 0x403146
push dword [ebp - 0x14]
call fcn.00404359
pop ecx
lea eax, [ebp - 0x14]
push 0x40c1b8
push eax
mov ecx, esi
call fcn.004011a5
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0040106a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], ebx
je 0x403177
push dword [ebp - 0x14]
call fcn.00404359
pop ecx
mov esi, 0x40c840
push 0x40c860
mov ecx, esi
call fcn.0040106a
lea eax, [ebp - 0x14]
push str._svchost.exe
push eax
mov ecx, esi
call fcn.004011a5
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0040106a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], ebx
je 0x4031b9
push dword [ebp - 0x14]
call fcn.00404359
pop ecx
push ebx
lea ecx, [ebp - 0x1c]
call section..text
push 0x40c1a4
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 3
call section..text
lea ecx, [ebp - 0x1c]
mov edi, 0x40c850
push ecx
push eax
mov esi, 0x80000002
push edi
push esi
mov byte [ebp - 4], 4
call fcn.00401d0b
mov bl, al
add esp, 0x10
neg bl
sbb bl, bl
mov byte [ebp - 4], 3
inc bl
cmp dword [ebp - 0x14], 0
je 0x40320e
push dword [ebp - 0x14]
call fcn.00404359
pop ecx
test bl, bl
je 0x40327e
push 0
call fcn.004047e0
push eax
call fcn.004047b8
call fcn.004047c2
lea ecx, [ebp - 0x38]
inc eax
push 0xa
push ecx
push eax
mov dword [0x40c7e8], eax
call fcn.00408fa6
add esp, 0x14
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004010a7
push 0x40c1a4
lea ecx, [ebp - 0x24]
call section..text
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
push ecx
push eax
push edi
push esi
call fcn.00401c87
add esp, 0x10
cmp dword [ebp - 0x24], 0
mov byte [ebp - 4], 3
je 0x403278
push dword [ebp - 0x24]
call fcn.00404359
pop ecx
and dword [ebp - 0x24], 0
jmp 0x40328c
push dword [ebp - 0x1c]
call fcn.004049f5
pop ecx
mov dword [0x40c7e8], eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
pop edi
pop esi
pop ebx
je 0x4032a2
push dword [ebp - 0x1c]
call fcn.00404359
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret