Function at 0x46fab0
Capabilities:
Create pipe
Create process on windows
Read file on windows
Read pipe
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a4ec3
mov eax, dword fs:[0]
push eax
mov eax, 0xa8b4
call fcn.00666cc0
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa894], 0x44
push 0x40
push 0
lea eax, [ebp - 0xa890]
push eax
call fcn.006665c0
add esp, 0xc
mov byte [ebp - 0xa01c], 0
push 0x9fff
push 0
lea ecx, [ebp - 0xa01b]
push ecx
call fcn.006665c0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xa01c]
push eax
call fcn.00666ba0
add esp, 8
mov dword [ebp - 0xa830], 0
mov dword [ebp - 0xa020], 0
mov dword [ebp - 0x10], 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xa020]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 1
push 1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0x44
push 0
lea ecx, [ebp - 0xa894]
push ecx
call fcn.006665c0
add esp, 0xc
mov dword [ebp - 0xa868], 0x100
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xa854], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xa858], eax
mov ecx, 1
mov word [ebp - 0xa864], cx
lea edx, [ebp - 0xa844]
push edx
lea eax, [ebp - 0xa894]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea ecx, [ebp - 0xa01c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0xa898], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xa898], 0
jne 0x46fc12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa830], eax
mov eax, dword [ebp - 0xa020]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xa830], 0
setne al
jmp 0x46ff11
mov ecx, dword [ebp - 0xa83c]
push ecx
push 0x7032a4
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov byte [ebp - 0xa82c], 0
push 0x800
push 0
lea edx, [ebp - 0xa82b]
push edx
call fcn.006665c0
add esp, 0xc
mov dword [ebp - 0xa848], 0
mov byte [ebp - 0xa831], 0
mov byte [ebp - 0xa021], 0
lea ecx, [ebp - 0x14]
call fcn.00401490
mov dword [ebp - 4], 0
push 1
mov eax, dword [ebp - 0xa844]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0x102
sete cl
mov byte [ebp - 0xa831], cl
push 0
lea edx, [ebp - 0xa848]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0xa020]
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
movzx ecx, byte [ebp - 0xa831]
test ecx, ecx
jne 0x46fcd6
cmp dword [ebp - 0xa848], 0
ja 0x46fcd6
mov dword [ebp - 0xa8c0], 0
jmp 0x46fce0
mov dword [ebp - 0xa8c0], 1
cmp dword [ebp - 0xa8c0], 0
je 0x46fe36
push 0x701973
lea ecx, [ebp - 0xa8b4]
call fcn.00404630
mov byte [ebp - 4], 1
cmp dword [ebp - 0xa848], 0
jbe 0x46fdeb
mov edx, dword [ebp - 0xa848]
mov dword [ebp - 0xa8b8], edx
cmp dword [ebp - 0xa8b8], 0x800
jbe 0x46fd30
mov dword [ebp - 0xa8b8], 0x800
push 0
lea eax, [ebp - 0xa8b8]
push eax
mov ecx, dword [ebp - 0xa8b8]
push ecx
lea edx, [ebp - 0xa82c]
push edx
mov eax, dword [ebp - 0xa020]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xa8b8]
mov byte [ebp + ecx - 0xa82c], 0
cmp dword [ebp - 0xa8b8], 0
jbe 0x46fd90
lea edx, [ebp - 0xa82c]
push edx
push 0x7032b8
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
lea eax, [ebp - 0xa82c]
push eax
lea ecx, [ebp - 0xa8b4]
call fcn.004138a0
lea ecx, [ebp - 0xa82c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040e920
mov edx, dword [ebp - 0xa848]
sub edx, dword [ebp - 0xa8b8]
mov dword [ebp - 0xa848], edx
push 0
push str.Write_ini_to
lea ecx, [ebp - 0xa8b4]
call fcn.004138c0
cmp eax, dword [0x6c2cb8]
je 0x46fde6
mov byte [ebp - 0xa021], 1
jmp 0x46fdeb
jmp 0x46fd01
movzx eax, byte [ebp - 0xa021]
cmp eax, 1
jne 0x46fe08
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8b4]
call fcn.00404770
jmp 0x46fe36
lea ecx, [ebp - 0xa8b4]
call fcn.00405300
movzx ecx, al
test ecx, ecx
je 0x46fe22
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8b4]
call fcn.00404770
jmp 0x46fc7b
push 0
lea ecx, [ebp - 0x14]
call fcn.004018a0
push eax
push 0x7032cc
call fcn.0066610b
add esp, 8
movzx edx, byte [ebp - 0xa021]
cmp edx, 1
jne 0x46fe75
push 1
mov eax, dword [ebp - 0xa844]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0xa830], 0
jmp 0x46febe
push 0x7032d4
call fcn.0066610b
add esp, 4
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xa844]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0xa830]
push edx
mov eax, dword [ebp - 0xa844]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0xa898], eax
cmp dword [ebp - 0xa898], 0
jne 0x46febe
mov dword [ebp - 0xa830], 0
mov ecx, dword [ebp - 0xa840]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xa844]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xa830]
push eax
push 0x7032ec
call fcn.0066610b
add esp, 8
cmp dword [ebp - 0xa830], 0
setne cl
mov byte [ebp - 0xa8b9], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004014d0
mov al, byte [ebp - 0xa8b9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret