Function at 0x4108eb
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, eax
mov edi, eax
mov dword [esi + 8], eax
cmp eax, 4
jg 0x4309ad
shld dword [eax + 0x58040000], edx, 0x74
sub eax, 0x480c7448
setne byte [esi]
add dword [eax], edx
add cl, ch
add dword [eax], 0
add byte [ebx - 0x77cf7b9], cl
add dword [ebp + eax - 0x7d], esi
clc
add dh, byte [ebp + 0x71]
mov ecx, edi
call 0xfda3
add dword [esi], eax
xchg ecx, eax
push esi
add al, 0xe9
adc eax, dword [ecx]
add byte [eax], al
mov eax, dword [edi + 8]
cmp eax, 1
jne 0x4109bc
cmp dword [edi], 0xffffff8b
push es
or eax, 0x8999380c
dec ecx
cld
mov ecx, eax
mov ebx, edx
mov eax, edi
mov edi, dword [0xc80399fc]
adc ebx, edx
mov eax, edi
cdq
cmp eax, ecx
jne 0x410964
cmp edx, ebx
je 0x410975
mov byte [esi + 8], 2
add byte [eax], ah
add byte [ecx + 0x45e880e], cl
jmp 0x10414a4b
leave
notrack jmp 0x410a4b
clc
or bh, byte [edi - 0x28]
xchg ebx, eax
clc
or ecx, dword [edi]
test dword [edx + 0x3b100000], eax
invalid
mov edi, esi
call fcn.0041002b
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
test byte [edi + 0x830], 4
je 0x430a26
mov eax, dword [ebp + 0x60]
push ebx
lea edx, [ebp + 0x40]
lea ecx, [eax + 0x14]
push edx
add eax, 0x10
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x4309d9
mov byte [ebp + 0x67], bl
mov eax, dword [ebp + 0x60]
push 2
push ebx
push ebx
add eax, 0xc
push eax
call esi
push eax
mov eax, dword [ebp + 0x60]
add eax, 0x10
push dword [eax]
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
jne 0x4309ff
mov byte [ebp + 0x67], bl
cmp byte [ebp + 0x67], bl
je 0x430a5e
mov eax, dword [ebp + 0x60]
add eax, 0x10
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x60]
add eax, 0x14
mov eax, dword [eax]
or dword [ebp + 0x10], 0x100
mov dword [ebp + 0x24], eax
jmp 0x430a5e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
cmp eax, ebx
mov dword [ebp + 0x24], eax
jne 0x430a5e
push ebx
push 0x80
push 3
lea eax, [ebp + 0x40]
push eax
push 2
push 0x40000000
push 0x471954
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x24], eax
jne 0x430a5e
mov dword [ebp + 0x24], ebx
test byte [edi + 0x830], 1
je 0x430ace
mov eax, dword [ebp + 0x60]
push ebx
lea ecx, [eax + 0x1c]
lea edx, [ebp + 0x40]
push edx
add eax, 0x20
push ecx
push eax
mov dword [ebp + 0x3c], ecx
mov dword [ebp + 0x38], eax
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x430a8a
mov byte [ebp + 0x67], bl
mov eax, dword [ebp + 0x60]
push 2
push ebx
push ebx
add eax, 0x18
push eax
call esi
push eax
mov eax, dword [ebp + 0x3c]
push dword [eax]
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
jne 0x430aad
mov byte [ebp + 0x67], bl
cmp byte [ebp + 0x67], bl
je 0x430b06
mov eax, dword [ebp + 0x3c]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x38]
mov eax, dword [eax]
or dword [ebp + 0x10], 0x100
mov dword [ebp + 0x1c], eax
jmp 0x430b06
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
cmp eax, ebx
mov dword [ebp + 0x1c], eax
jne 0x430b06
push ebx
push 0x80
push 3
lea eax, [ebp + 0x40]
push eax
push 1
push SysReAllocString
push 0x471954
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x1c], eax
jne 0x430b06
mov dword [ebp + 0x1c], ebx
mov ecx, dword [ebp + 0x74]
xor eax, eax
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
push eax
lea eax, [ebp - 0x4060]
push eax
call fcn.0044e973
cmp dword [ebp + 0x78], 2
pop ecx
pop ecx
jb 0x430b4f
mov ecx, dword [ebp + 0x74]
xor eax, eax
inc eax
call fcn.00405aa7
mov esi, eax
call fcn.0040fc41
push eax
lea eax, [ebp - 0x2060]
push eax
call fcn.0044e973
pop ecx
pop ecx
jmp 0x430b56
mov word [ebp - 0x2060], bx
cmp word [ebp - 0x2060], bx
jne 0x430b71
lea eax, [ebp - 0x2060]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
cmp dword [ebp + 0x78], 3
jb 0x430b8b
mov ecx, dword [ebp + 0x74]
push 2
pop eax
call fcn.00405aa7
call fcn.0040fd19
mov word [ebp + 0x14], ax
cmp byte [edi + 0x7f0], bl
je 0x430c91
lea esi, [ebp + 0x54]
call fcn.00433dda
test al, al
je 0x430c6c
push 0x44
pop esi
push esi
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00451260
mov ax, word [ebp + 0x14]
add esp, 0xc
cmp byte [ebp + 0x67], bl
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x34], 1
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], ax
je 0x430be2
mov byte [ebp + 0x67], bl
lea eax, [ebp - 0x4060]
push eax
call fcn.0040d6da
mov dword [ebp + 0x4c], eax
lea eax, [ebp - 0x2060]
push eax
call fcn.0040d6da
cmp byte [edi + 0x7f0], bl
pop ecx
pop ecx
mov dword [ebp + 0x50], eax
je 0x430c91
lea esi, [ebp + 0x54]
call fcn.00433dda
test al, al
je 0x430c91
call fcn.00433dda
test al, al
mov eax, dword [ebp + 0x5c]
jne 0x430c2b
mov eax, 0x433ea0
lea ecx, [ebp + 0x28]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push dword [ebp + 0x50]
push ebx
push ebx
push dword [ebp + 0x4c]
push ebx
push dword [edi + 0x7f4]
push dword [edi + 0x800]
push dword [edi + 0x7fc]
push dword [edi + 0x7f8]
call eax
push dword [ebp + 0x4c]
mov esi, eax
call fcn.0044e722
push dword [ebp + 0x50]
call fcn.0044e722
pop ecx
pop ecx
jmp 0x430cb9
push 0xffffffffffffffff
push 0x9b
mov ebx, edi
call fcn.004187cb
cmp dword [ebp + 0x54], 0
je 0x430c89
push dword [ebp + 0x54]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor eax, eax
inc eax
jmp 0x430e02
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2060]
push eax
movzx eax, byte [ebp + 0x67]
push ebx
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x4060]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov esi, eax
cmp esi, ebx
jne 0x430d16
cmp byte [edi + 0x290], 1
jne 0x430cea
push 0xffffffffffffffff
lea eax, [ebp + 0x40]
push eax
call fcn.00418b7f
push dword [eax]
mov ebx, edi
push 0x87
call fcn.004189b9
push dword [ebp + 0x40]
call fcn.0044e722
pop ecx
jmp 0x430c7a
xor ecx, ecx
push ebx
inc ecx
mov eax, edi
call fcn.0041a11e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, edi
mov dword [edi + 0x350], eax
call fcn.0041a14b
mov esi, dword [ebp + 0x7c]
push ebx
call fcn.004101fc
jmp 0x430df2
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [ebp + 0x67], bl
je 0x430d90
test byte [edi + 0x830], 2
mov esi, dword [ebp + 0x60]
je 0x430d39
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test byte [edi + 0x830], 4
je 0x430d4b
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test byte [edi + 0x830], 1
je 0x430d5d
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x30]
push 2
push ebx
mov dword [esi + 0x2c], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea eax, [esi + 0x24]
push eax
call ebx
push eax
push dword [ebp + 0x28]
call ebx
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push esi
lea ebx, [edi + 0x820]
call fcn.00433e09
xor ebx, ebx
jmp 0x430dbb
mov eax, dword [edi + 0x830]
cmp eax, ebx
je 0x430dbb
mov esi, dword [ebp + 0x60]
call fcn.0040f437
cmp esi, ebx
je 0x430dbb
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x430db2
call fcn.0040f437
push dword [ebp + 0x60]
call fcn.0044e722
pop ecx
cmp dword [ebp + 0x70], 1
jne 0x430dcc
mov eax, dword [ebp + 0x28]
mov dword [edi + 0x7e8], eax
jmp 0x430df2
mov eax, dword [ebp + 0x30]
fild dword [ebp + 0x30]
test eax, eax
jge 0x430ddc
fadd qword [0x472380]
mov esi, dword [ebp + 0x7c]
push ecx
push ecx
fstp qword [esp]
call fcn.004102a8
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp + 0x54], ebx
je 0x430e00
push dword [ebp + 0x54]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor eax, eax
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10