Function at 0x4e1cd0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58924b
mov eax, dword fs:[0]
push eax
mov eax, 0x3878
call fcn.00520260
mov eax, dword [0x5ca104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x3810]
mov esi, dword [ebp + 0x10]
push 0x2800
push 0
push eax
mov dword [ebp - 0x3884], 0
call fcn.00524040
add esp, 0xc
lea eax, [ebp - 0x3810]
test esi, esi
je 0x4e1d49
push esi
push str.regsvr32__s
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x4e1d5d
push str.regsvr32__s
push 0x5a0e1c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x5a3d5c
lea ecx, [ebp - 0x3814]
mov dword [ebp - 0x3814], 0
call fcn.0041c5d0
push 0
lea eax, [ebp - 0x382c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x3820]
mov dword [ebp - 0x381c], 0
push eax
lea eax, [ebp - 0x381c]
mov dword [ebp - 0x3820], 0
push eax
mov dword [ebp - 0x382c], 0xc
mov dword [ebp - 0x3828], 0
mov dword [ebp - 0x3824], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4e1edd
lea eax, [ebp - 0x3880]
mov dword [ebp - 0x3880], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp - 0x3820]
mov dword [ebp - 0x3840], eax
mov dword [ebp - 0x3844], eax
xor eax, eax
mov word [ebp - 0x3850], ax
lea eax, [ebp - 0x383c]
push eax
lea eax, [ebp - 0x3880]
mov dword [ebp - 0x3854], 0x101
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x3810]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4e1edd
push dword [ebp - 0x3820]
call ebx
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00524040
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x3818]
add esp, 0xc
push 0
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x381c]
call esi
test eax, eax
je 0x4e1edd
nop dword [eax]
lea eax, [ebp - 0x1010]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e1ea0
sub eax, edx
lea ecx, [ebp - 0x3814]
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.0043fd30
push 0
lea eax, [ebp - 0x3818]
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x381c]
call esi
test eax, eax
jne 0x4e1e90
mov eax, dword [ebp - 0x381c]
test eax, eax
je 0x4e1ef4
push eax
call ebx
mov dword [ebp - 0x381c], 0
push dword [ebp - 0x383c]
call ebx
push dword [ebp - 0x3838]
call ebx
mov ecx, dword [ebp - 0x3814]
lea ecx, [ecx - 0x10]
call fcn.0041ef20
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x3814]
mov dword [edi], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e1f68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e1f66
mov esi, dword [ecx + 4]
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
cmp ecx, vtable.ATL::CWin32Heap.0
jne 0x4e1f60
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4e1f68
mov ecx, esi
call eax
jmp 0x4e1f68
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051fefc
mov esp, ebp
pop ebp
ret 0x10