Function at 0x403196
Capabilities:
Connect pipe
Delete directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.0040ab60
cmp dword [0x2a9f368], 0x594
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jne 0x4031d6
push 0x402b78
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x402ba4
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x42af48]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42af4c]
xor ebx, ebx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.0040318f
mov eax, dword [0x42af50]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x42af54]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x20
jmp 0x403216
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x2a9f368], 0xc
mov dword [ebp - 4], eax
jne 0x403266
xor eax, eax
mov dword [ebp - 0x44], ebx
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push ebx
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x58]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x2a9f368]
cmp eax, 0xfa9
jne 0x403282
mov dword [0x2a9e904], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40328f
mov dword [0x2a9e2b4], ebx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, esi
shr edx, cl
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov dword [0x2a9e900], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2a9f368], 0x213
mov dword [ebp - 0x18], edx
jne 0x4032cc
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x2a9f368], 0xc
jne 0x403309
push ebx
lea eax, [ebp - 0x858]
push eax
push 0x402bc0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push ebx
lea eax, [ebp - 0x1058]
push eax
push 0x402bf4
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov esi, eax
shr esi, cl
lea edx, [edi + eax]
xor dword [ebp - 4], edx
add esi, dword [ebp - 0x2c]
cmp dword [0x2a9f368], 0x121
jne 0x403344
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
mov eax, dword [ebp - 8]
xor dword [ebp - 4], esi
mov ecx, dword [ebp - 4]
sub dword [ebp - 0x14], ecx
add dword [ebp - 0x10], 0x61c88647
dec dword [ebp - 0x1c]
jne 0x403213
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
pop edi
pop esi
mov dword [ecx], edx
mov dword [ecx + 4], eax
pop ebx
leave
ret 4