Function at 0x41d013
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x528a5b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x11dc
call fcn.00502f70
mov eax, dword [0x572480]
xor eax, esp
mov dword [esp + 0x11d8], eax
push ebx
push esi
push edi
mov eax, dword [0x572480]
xor eax, esp
push eax
lea eax, [esp + 0x11f0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esp + 0x3c], eax
push edi
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x40]
push eax
xor esi, esi
lea eax, [esp + 0x28]
inc esi
push eax
mov dword [esp + 0x68], 0xc
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x48], edi
call ebx
test eax, eax
jne 0x41d0dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x41d0b3
and eax, 0xffff
or eax, 0x80070000
push 0x607
push str.srcSHIMManager.cpp
mov edx, eax
lea ecx, [esp + 0x154]
call fcn.0042fde0
push 0x55ed9c
lea eax, [esp + 0x150]
push eax
call fcn.004f083e
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x11f8], edi
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], ecx
push edi
push esi
mov byte [esp + 0x1200], 1
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push eax
call esi
test eax, eax
jne 0x41d145
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x41d11f
and eax, 0xffff
or eax, 0x80070000
push 0x614
push str.srcSHIMManager.cpp
mov edx, eax
lea ecx, [esp + 0x154]
call fcn.0042fde0
push 0x55ed9c
lea eax, [esp + 0x150]
jmp 0x41d0d7
push edi
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], edi
call ebx
test eax, eax
jne 0x41d1a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x41d177
and eax, 0xffff
or eax, 0x80070000
push 0x621
push str.srcSHIMManager.cpp
mov edx, eax
lea ecx, [esp + 0x154]
call fcn.0042fde0
push 0x55ed9c
lea eax, [esp + 0x150]
jmp 0x41d0d7
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
push edi
push 1
push eax
mov byte [esp + 0x1204], 3
call esi
test eax, eax
jne 0x41d1ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x41d1d6
and eax, 0xffff
or eax, 0x80070000
push 0x62e
push str.srcSHIMManager.cpp
mov edx, eax
lea ecx, [esp + 0x154]
call fcn.0042fde0
push 0x55ed9c
lea eax, [esp + 0x150]
jmp 0x41d0d7
push 7
pop eax
xor ecx, ecx
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], edi
mov word [esp + 0xc0], cx
mov dword [esp + 0x144], eax
xor eax, eax
mov dword [esp + 0x140], edi
mov word [esp + 0x130], ax
lea eax, [esp + 0x130]
push eax
lea eax, [esp + 0xc4]
push eax
mov byte [esp + 0x1200], 5
call fcn.0042dbe4
pop ecx
pop ecx
test al, al
jne 0x41d27f
push str.GetModulePaths_failed
lea esi, [esp + 0xfc]
call fcn.0040319e
mov byte [esp + 0x11f8], 6
push 0x638
mov ecx, str.srcSHIMManager.cpp
mov eax, esi
call fcn.00401c97
lea eax, [esp + 0xdc]
push eax
lea ebx, [esp + 0xc4]
call fcn.0041dc77
mov byte [esp + 0x11fc], 7
mov dword [esp], str.____shim
push eax
lea eax, [esp + 0x100]
call fcn.004051da
pop ecx
pop ecx
mov ebx, eax
lea eax, [esp + 0xc0]
mov byte [esp + 0x11f8], 8
call fcn.00403e2e
push 1
xor edi, edi
lea esi, [esp + 0xfc]
call fcn.00401501
push 1
lea esi, [esp + 0xe0]
mov byte [esp + 0x11fc], 5
call fcn.00401501
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [esp + 0x78]
push ebx
push eax
call fcn.004e9070
mov eax, dword [esp + 0x44]
or dword [esp + 0xac], 0x100
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc0], eax
xor eax, eax
lea edi, [esp + 0x70]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x78], esi
inc eax
lea esi, [esp + 0xfc]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
call fcn.0040a898
mov byte [esp + 0x11f8], 9
cmp dword [esp + 0xd4], 8
mov ecx, dword [esp + 0xc0]
mov eax, ecx
jae 0x41d384
lea eax, [esp + 0xc0]
cmp dword [esp + 0xd4], 8
mov edx, dword [esp + 0xd0]
lea eax, [eax + edx*2]
jae 0x41d39f
lea ecx, [esp + 0xc0]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push ecx
push dword [esp + 0x100]
call fcn.004e7af0
add esp, 0xc
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x78]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
jne 0x41d416
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x41d3ed
and eax, 0xffff
or eax, 0x80070000
push 0x658
push str.srcSHIMManager.cpp
mov edx, eax
lea ecx, [esp + 0x154]
call fcn.0042fde0
push 0x55ed9c
lea eax, [esp + 0x150]
jmp 0x41d0d7
push dword [esp + 0x68]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], eax
mov byte [esp + 0x11f8], 0xa
cmp dword [esp + 0x28], ebx
je 0x41d445
cmp dword [esp + 0x28], 0xffffffff
je 0x41d445
push dword [esp + 0x28]
call esi
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x24], ebx
je 0x41d45c
cmp dword [esp + 0x24], 0xffffffff
je 0x41d45c
push dword [esp + 0x24]
call esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
mov byte [esp + 0x11f8], 0xb
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x41d4af
push dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1e8]
push ecx
push dword [esp + 0xe8]
lea eax, [esp + eax + 0x1f0]
lea esi, [esp + 0xe8]
call fcn.0041dd13
push ebx
lea eax, [esp + 0x18]
push eax
push 0x1000
lea eax, [esp + 0x1f0]
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x28], ebx
call edi
cmp eax, ebx
jne 0x41d485
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x41d796
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x11f8], 0xc
jmp 0x41d519
push dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1e8]
push ecx
push dword [esp + 0x50]
lea eax, [esp + eax + 0x1f0]
lea esi, [esp + 0x50]
call fcn.0041dd13
push ebx
lea eax, [esp + 0x18]
push eax
push 0x1000
lea eax, [esp + 0x1f0]
push eax
push dword [esp + 0x30]
mov dword [esp + 0x28], ebx
call edi
cmp eax, ebx
jne 0x41d4f5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x6d
jne 0x41d75f
push 0xffffffffffffffff
push dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x68]
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x41d5a7
call esi
cmp eax, ebx
jle 0x41d57e
and eax, 0xffff
or eax, 0x80070000
push 0x69d
push str.srcSHIMManager.cpp
mov edx, eax
lea ecx, [esp + 0x154]
call fcn.0042fde0
push 0x55ed9c
lea eax, [esp + 0x150]
jmp 0x41d0d7
cmp dword [esp + 0x40], ebx
je 0x41d608
lea eax, [esp + 0x14c]
push eax
call fcn.004036d7
mov esi, eax
push str.Shim_collection_process_failed_with
push esi
mov byte [esp + 0x1200], 0xd
call fcn.00406897
pop ecx
pop ecx
push dword [esp + 0x40]
push esi
call fcn.004053dc
lea eax, [esp + 0x114]
push eax
mov eax, esi
call fcn.00403741
mov byte [esp + 0x11f8], 0xe
push 0x6a3
mov ecx, str.srcSHIMManager.cpp
lea eax, [esp + 0x118]
jmp 0x41d27a
mov ecx, dword [esp + 0xdc]
mov eax, dword [esp + 0xe0]
sub eax, ecx
shr eax, 1
push eax
lea eax, [esp + 0x118]
call fcn.00404c3a
mov ebx, eax
mov eax, dword [esp + 0x54]
mov byte [esp + 0x11f8], 0xf
call fcn.00403e2e
push 1
xor edi, edi
lea esi, [esp + 0x118]
mov byte [esp + 0x11fc], 0xc
call fcn.00401501
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
sub eax, ecx
shr eax, 1
push eax
lea eax, [esp + 0x118]
call fcn.00404c3a
mov byte [esp + 0x11f8], 0x10
mov ebx, eax
mov eax, dword [esp + 0x3c]
call fcn.00403e2e
push 1
lea esi, [esp + 0x118]
call fcn.00401501
xor ebx, ebx
cmp dword [esp + 0x44], ebx
je 0x41d69e
push dword [esp + 0x44]
call fcn.004e7927
pop ecx
cmp dword [esp + 0xdc], ebx
je 0x41d6b4
push dword [esp + 0xdc]
call fcn.004e7927
pop ecx
mov byte [esp + 0x11f8], 9
cmp dword [esp + 0x18], ebx
je 0x41d6d3
cmp dword [esp + 0x18], 0xffffffff
je 0x41d6d3
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0xf8]
call fcn.00460ab5
push 1
xor edi, edi
lea esi, [esp + 0x134]
call fcn.00401501
push 1
lea esi, [esp + 0xc4]
call fcn.00401501
mov byte [esp + 0x11f8], 1
cmp dword [esp + 0x30], ebx
je 0x41d71c
cmp dword [esp + 0x30], 0xffffffff
je 0x41d71c
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esp + 0x11f8], 0xffffffff
cmp dword [esp + 0x34], ebx
je 0x41d73b
cmp dword [esp + 0x34], 0xffffffff
je 0x41d73b
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x11f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x11d8]
xor ecx, esp
call fcn.004e72ee
mov esp, ebp
pop ebp
ret
cmp eax, ebx
jle 0x41d76d
and eax, 0xffff
or eax, 0x80070000
push 0x68d
push str.srcSHIMManager.cpp
mov edx, eax
lea ecx, [esp + 0x154]
call fcn.0042fde0
push 0x55ed9c
lea eax, [esp + 0x150]
jmp 0x41d0d7
cmp eax, ebx
jle 0x41d7a4
and eax, 0xffff
or eax, 0x80070000
push 0x678
push str.srcSHIMManager.cpp
mov edx, eax
lea ecx, [esp + 0x154]
call fcn.0042fde0
push 0x55ed9c
lea eax, [esp + 0x150]
jmp 0x41d0d7