Function at 0x101d1281
Capabilities:
Create pipe

Disassembly:
sub esp, 0x1d4
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x1d0], eax
mov ecx, dword [esp + 0x1e8]
mov eax, dword [esp + 0x1dc]
push ebx
mov ebx, dword [esp + 0x1e8]
push ebp
mov ebp, dword [esp + 0x1e0]
push esi
mov esi, dword [esp + 0x1ec]
push edi
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0xe0]
push ecx
push 0x104
push 0
push ebp
push eax
call dword [sym.imp.kernel32.dll_SearchPathA]
test eax, eax
jne 0x101d1340
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101d12e5
push 1
sub ecx, edx
xor ebx, ebx
push ebx
lea esi, [ecx + 1]
lea eax, [esp + 0x6c]
push eax
lea eax, [esi + esi]
push eax
push ebx
push 0x78
lea ecx, [esp + 0x34]
call fcn.1015692e
mov edi, dword [esp + 0x20]
test edi, edi
je 0x101d131f
push esi
push edi
push esi
push ebp
push ebx
push ebx
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push ebx
push edi
mov esi, 0x800a9d33
push esi
call fcn.1000b028
push eax
call fcn.101a7e33
lea ecx, [esp + 0x1c]
call fcn.1000cead
jmp 0x101d14f7
xor eax, eax
lea edi, [esp + 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [esp + 0x2c], 0
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x40], 1
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
jne 0x101d1396
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x101d14f9
and eax, 0xffff
or eax, 0x80070000
jmp 0x101d14f9
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
push ebx
push esi
lea ebx, [esp + 0xe8]
call fcn.101d1514
mov edi, eax
test edi, edi
jns 0x101d13cc
push dword [esp + 0x14]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [esp + 0x18]
call esi
mov eax, edi
jmp 0x101d14f9
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0x1d
pop esi
jmp 0x101d13e6
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push esi
push esi
push 0
lea eax, [esp + 0x58]
push eax
call ebx
test eax, eax
jne 0x101d13d9
push dword [esp + 0x18]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
call edi
mov ebx, dword [esp + 0x10]
push ebx
push dword [esp + 0x18]
call fcn.101d16bc
mov esi, eax
test esi, esi
js 0x101d14bc
push 0xffffffffffffffff
push dword [esp + 0x38]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x38]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
cmp dword [esp + 0x10], 0
je 0x101d1449
mov eax, dword [ebx]
cmp byte [eax], 0
je 0x101d1449
mov esi, 0x80004005
jmp 0x101d14bc
mov eax, dword [0x10239088]
push dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
and dword [ebx], 0
cmp dword [esp + 0x10], 0
je 0x101d14bc
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101d1465
push 1
push 0
sub ecx, edx
lea ebx, [ecx + 1]
lea eax, [esp + 0x6c]
push eax
lea eax, [ebx + ebx]
push eax
push 0
push 0x78
lea ecx, [esp + 0x34]
call fcn.1015692e
mov esi, dword [esp + 0x20]
test esi, esi
je 0x101d14a1
push ebx
push esi
push ebx
push ebp
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push 0
push esi
push 0xe357
call fcn.101a7e33
lea ecx, [esp + 0x1c]
mov esi, 0x800ae357
call fcn.1000cead
push dword [esp + 0x38]
call edi
push dword [esp + 0x34]
call edi
push dword [esp + 0x14]
call edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0x1d
pop ebx
jmp 0x101d14e8
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push ebx
push ebx
push 0
lea eax, [esp + 0x58]
push eax
call edi
test eax, eax
jne 0x101d14db
mov eax, esi
mov ecx, dword [esp + 0x1e0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10001e57
add esp, 0x1d4
ret 0x14