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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5028c0
mov eax, dword fs:[0]
push eax
mov eax, 0x10b0
call fcn.004d3c40
mov eax, dword [0x5e0f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x44
mov dword [ebp - 0x10bc], eax
lea eax, [ebp - 0x1094]
push 0
push eax
mov byte [ebp - 0x1099], 0
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x1044], 0
call fcn.004d65b0
add esp, 0xc
mov dword [ebp - 0x1050], 0xc
lea eax, [ebp - 0x1050]
mov dword [ebp - 0x1048], 1
xorps xmm0, xmm0
mov dword [ebp - 0x104c], 0
movups xmmword [ebp - 0x103c], xmm0
push 0
push eax
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x1040]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4ae9de
push 0x5b6be0
mov dword [ebp - 0x10b8], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov dword [ebp - 0x10b4], str.OS_RunCommand
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [ebp - 0x10b8]
push eax
push 3
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0x7dc
call fcn.004a4b70
add esp, 0x18
jmp 0x4af019
push 0
push 1
push dword [ebp - 0x1040]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x4aea39
push 0x5b6bfc
mov dword [ebp - 0x10b8], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov dword [ebp - 0x10b4], str.OS_RunCommand
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [ebp - 0x10b8]
push eax
push 3
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0x7e4
call fcn.004a4b70
add esp, 0x18
jmp 0x4af019
mov eax, dword [ebp - 0x1044]
or dword [ebp - 0x1068], 0x100
mov dword [ebp - 0x1058], eax
xor eax, eax
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x1094], 0x44
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 7
mov word [ebp - 0x102c], ax
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 4], eax
mov eax, esi
jb 0x4aea8d
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
lea eax, [ebp - 0x102c]
push eax
call fcn.00493fd0
mov ecx, dword [ebp - 0x101c]
add esp, 0xc
mov edx, dword [ebp - 0x1018]
mov dword [ebp - 0x10a4], ecx
mov dword [ebp - 0x10a8], edx
cmp ecx, edx
jae 0x4aeae5
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x101c], eax
lea eax, [ebp - 0x102c]
cmovae eax, dword [ebp - 0x102c]
xor edx, edx
mov dword [eax + ecx*2], edx
mov ecx, dword [ebp - 0x102c]
jmp 0x4aec13
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x4af06a
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0x10ac], eax
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x4aeb12
mov ecx, 0x7ffffffe
jmp 0x4aeb3f
mov eax, edx
shr eax, 1
mov dword [ebp - 0x1098], eax
mov eax, 0x7ffffffe
sub eax, dword [ebp - 0x1098]
cmp edx, eax
jbe 0x4aeb32
mov ecx, 0x7ffffffe
jmp 0x4aeb3f
mov eax, dword [ebp - 0x1098]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x1014], ecx
push eax
lea ecx, [ebp - 0x102c]
call fcn.00430fc0
cmp dword [ebp - 0x10a8], 8
mov ecx, eax
mov eax, dword [ebp - 0x10ac]
mov dword [ebp - 0x101c], eax
mov eax, dword [ebp - 0x1014]
mov dword [ebp - 0x1018], eax
mov eax, dword [ebp - 0x10a4]
mov dword [ebp - 0x10a0], ecx
lea edx, [eax + eax]
lea eax, [edx + ecx]
mov dword [ebp - 0x1014], eax
push edx
jb 0x4aebed
mov eax, dword [ebp - 0x102c]
push eax
push ecx
mov dword [ebp - 0x1098], eax
call fcn.004d6030
mov eax, dword [ebp - 0x1014]
xor ecx, ecx
add esp, 0xc
mov dword [eax], ecx
mov eax, dword [ebp - 0x10a8]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x1098]
cmp ecx, 0x1000
jb 0x4aebe1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4af06f
mov eax, edx
push ecx
push eax
call fcn.004d36cd
add esp, 8
jmp 0x4aec07
lea eax, [ebp - 0x102c]
push eax
push ecx
call fcn.004d6030
mov eax, dword [ebp - 0x1014]
add esp, 0xc
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10a0]
mov dword [ebp - 0x102c], ecx
cmp dword [ebp - 0x1018], 8
lea eax, [ebp - 0x102c]
cmovae eax, ecx
lea ecx, [ebp - 0x103c]
push ecx
lea ecx, [ebp - 0x1094]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4aecbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 0x10
mov edi, eax
jb 0x4aec5a
mov esi, dword [esi]
push esi
push str.command
call fcn.004a4430
add esp, 8
mov dword [ebp - 0x10b8], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov dword [ebp - 0x10b4], str.OS_RunCommand
movq xmm0, qword [ebp - 0x10b8]
push 0x5b6c1c
push edi
push 3
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0x800
call fcn.004a4b70
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x102c]
call fcn.00421b80
jmp 0x4af019
mov ecx, dword [ebp - 0x10bc]
test ecx, ecx
je 0x4aeccd
mov eax, dword [ebp - 0x1034]
mov dword [ecx], eax
push dword [ebp - 0x103c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov dword [ebp - 0x103c], 0
test eax, eax
jne 0x4aed2b
push 0x5b64a8
mov dword [ebp - 0x10b8], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov dword [ebp - 0x10b4], str.WIN32_CloseHandle
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [ebp - 0x10b8]
push eax
push 3
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0x1f
call fcn.004a4b70
add esp, 0x18
push dword [ebp - 0x1044]
call esi
mov dword [ebp - 0x1044], 0
test eax, eax
jne 0x4aed83
push 0x5b64a8
mov dword [ebp - 0x10b8], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov dword [ebp - 0x10b4], str.WIN32_CloseHandle
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [ebp - 0x10b8]
push eax
push 3
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0x1f
call fcn.004a4b70
add esp, 0x18
test edi, edi
je 0x4aefb2
push 0x1000
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1014], 0
push 0
push eax
call fcn.004d65b0
add esp, 0xc
lea eax, [ebp - 0x1014]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1040]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4aefb2
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
mov esi, dword [ebp - 0x1014]
mov dword [ebp - 0x10a0], esi
mov dword [ebp - 0x10a4], ecx
mov dword [ebp - 0x10a8], edx
cmp esi, eax
ja 0x4aee31
lea eax, [esi + ecx]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x4aee09
mov eax, dword [edi]
push dword [ebp - 0x10a0]
lea esi, [eax + ecx]
lea eax, [ebp - 0x1010]
push eax
push esi
call fcn.004d6030
mov eax, dword [ebp - 0x10a0]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x4aef69
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, esi
jb 0x4af06a
lea eax, [esi + ecx]
mov ecx, eax
mov dword [ebp - 0x10bc], eax
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x4aee5d
mov ecx, 0x7fffffff
jmp 0x4aee8a
mov eax, edx
shr eax, 1
mov dword [ebp - 0x10a0], eax
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x10a0]
cmp edx, eax
jbe 0x4aee7d
mov ecx, 0x7fffffff
jmp 0x4aee8a
mov eax, dword [ebp - 0x10a0]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x1098], ecx
push eax
mov ecx, edi
call fcn.00421c20
mov ecx, dword [ebp - 0x10a4]
mov edx, eax
mov eax, dword [ebp - 0x10bc]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x1098]
mov dword [edi + 0x14], eax
lea eax, [edx + ecx]
mov dword [ebp - 0x1098], eax
add eax, esi
cmp dword [ebp - 0x10a8], 0x10
mov dword [ebp - 0x10ac], edx
mov dword [ebp - 0x10a4], eax
push ecx
jb 0x4aef3b
mov eax, dword [edi]
push eax
push edx
mov dword [ebp - 0x10a0], eax
call fcn.004d6030
push esi
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1098]
call fcn.004d6030
mov eax, dword [ebp - 0x10a4]
add esp, 0x18
mov ecx, dword [ebp - 0x10a8]
inc ecx
mov byte [eax], 0
mov eax, dword [ebp - 0x10a0]
cmp ecx, 0x1000
jb 0x4aef2f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4af06f
mov eax, edx
push ecx
push eax
call fcn.004d36cd
add esp, 8
jmp 0x4aef61
push edi
push edx
call fcn.004d6030
push esi
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1098]
call fcn.004d6030
mov eax, dword [ebp - 0x10a4]
add esp, 0x18
mov byte [eax], 0
mov eax, dword [ebp - 0x10ac]
mov dword [edi], eax
push 0x1000
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1014], 0
push 0
push eax
call fcn.004d65b0
add esp, 0xc
lea eax, [ebp - 0x1014]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1040]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4aedd4
mov ecx, dword [ebp - 0x1018]
mov byte [ebp - 0x1099], 1
mov dword [ebp - 4], 0xffffffff
cmp ecx, 8
jb 0x4aeffc
mov edx, dword [ebp - 0x102c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4aeff2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4af06f
push ecx
push edx
call fcn.004d36cd
add esp, 8
xor eax, eax
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 7
mov word [ebp - 0x102c], ax
cmp dword [ebp - 0x1040], 0
je 0x4af031
lea eax, [ebp - 0x1040]
push eax
call fcn.004c3010
add esp, 4
cmp dword [ebp - 0x1044], 0
je 0x4af049
lea eax, [ebp - 0x1044]
push eax
call fcn.004c3010
add esp, 4
mov al, byte [ebp - 0x1099]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3b35
mov esp, ebp
pop ebp
ret
call fcn.00421be0
call fcn.004d826f
int3