Function at 0x524b60
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 0x6aea19
mov eax, dword fs:[0]
push eax
mov eax, 0x16bc
call fcn.00666cc0
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
jl 0x524b9b
cmp dword [ebp + 0xc], 2
jle 0x524bc7
mov eax, dword [ebp + 0xc]
push eax
push str.get_prolin_info_param_fail._type_d_r_n
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, 4
jmp 0x5251d6
push 0x7554c7
mov ecx, dword [ebp + 8]
call fcn.0040dc60
mov dword [ebp - 0x1294], 0
mov dword [ebp - 0x1224], 0xc
mov dword [ebp - 0x1220], 0
mov dword [ebp - 0x121c], 1
push 0
lea ecx, [ebp - 0x1224]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x524c3f
push str.create_pipe_fail._r_n
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, 1
jmp 0x5251d6
push 0x1000
push 0
lea ecx, [ebp - 0x106c]
push ecx
call fcn.006665c0
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x1214]
push edx
call fcn.006665c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x1214]
push eax
call fcn.0049f360
add esp, 8
push 0x75aaa8
lea ecx, [ebp - 0x1214]
push ecx
call fcn.00666bb0
add esp, 8
lea ecx, [ebp - 0x48]
call fcn.00401490
mov dword [ebp - 4], 0
mov edx, dword [0x7dde08]
push edx
push 0x75aabc
call fcn.005128e0
add esp, 8
mov dword [ebp - 0x1218], eax
mov byte [ebp - 0x44], 0
push 0x33
push 0
lea eax, [ebp - 0x43]
push eax
call fcn.006665c0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x16bc], ecx
cmp dword [ebp - 0x16bc], 0
je 0x524ced
cmp dword [ebp - 0x16bc], 1
je 0x524d00
jmp 0x524d11
push str.getubootver
lea edx, [ebp - 0x44]
push edx
call fcn.00666ba0
add esp, 8
jmp 0x524d11
push 0x75aad0
lea eax, [ebp - 0x44]
push eax
call fcn.00666ba0
add esp, 8
mov ecx, dword [ebp - 0x1218]
push ecx
call fcn.00666cf0
add esp, 4
test eax, eax
je 0x524d49
mov edx, dword [ebp - 0x1218]
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x1214]
push ecx
push str.__s__act_s_frest0_ferase0_ftm0_osverprolin2.4_usbport_s
lea edx, [ebp - 0x48]
push edx
call fcn.004017f0
add esp, 0x14
jmp 0x524d65
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x1214]
push ecx
push str.__s__act_s_frest0_ferase0_ftm0_osverprolin2.4
lea edx, [ebp - 0x48]
push edx
call fcn.004017f0
add esp, 0x10
lea ecx, [ebp - 0x48]
call fcn.00489570
push eax
lea eax, [ebp - 0x106c]
push eax
call fcn.00666ba0
add esp, 8
lea ecx, [ebp - 0x106c]
push ecx
lea ecx, [ebp - 0x1290]
call fcn.00404630
mov byte [ebp - 4], 1
mov dword [ebp - 0x1274], 0x44
lea edx, [ebp - 0x1274]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x1234], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x1238], ecx
mov dword [ebp - 0x1248], 0x101
xor edx, edx
mov word [ebp - 0x1244], dx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x1274]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [ebp - 0x106c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x524e99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x16a4], eax
push 0
push 0
lea eax, [ebp - 0x16a0]
push eax
push 0x400
mov ecx, dword [ebp - 0x16a4]
push ecx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x16a0]
push edx
lea eax, [ebp - 0x106c]
push eax
push 0x75ab50
call fcn.0066610b
add esp, 0xc
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov ecx, dword [ebp - 0x16a0]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x16a8], 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1290]
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, dword [ebp - 0x16a8]
jmp 0x5251d6
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7554da
lea ecx, [ebp - 0x1108]
call fcn.00404630
mov byte [ebp - 4], 2
mov eax, 1
test eax, eax
je 0x524f07
push 0
lea ecx, [ebp - 0x169c]
push ecx
push 0x3ff
lea edx, [ebp - 0x1694]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x524ee5
jmp 0x524f07
mov ecx, dword [ebp - 0x169c]
mov byte [ebp + ecx - 0x1694], 0
lea edx, [ebp - 0x1694]
push edx
lea ecx, [ebp - 0x1108]
call fcn.004138a0
jmp 0x524eb7
push 0xffffffffffffffff
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1108]
call fcn.00404810
push eax
lea ecx, [ebp - 0x1698]
call fcn.0040dbe0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1698]
call fcn.00454880
cmp dword [ebp + 0xc], 1
je 0x524f8d
push 0
lea ecx, [ebp - 0x1698]
call fcn.004018a0
push eax
push 0x75ab4c
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
cmp dword [ebp - 0x58], 0
je 0x525011
mov edx, dword [ebp - 0x58]
push edx
push str.GetExitCodeProcess_fail.exitCode_d_r_n
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1294], eax
mov ecx, dword [ebp - 0x1294]
mov dword [ebp - 0x16ac], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1698]
call fcn.004014d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1108]
call fcn.00404770
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1290]
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, dword [ebp - 0x16ac]
jmp 0x5251d6
mov dword [ebp - 0x1228], 0
mov byte [ebp - 0x10ec], 0
push 0x7f
push 0
lea edx, [ebp - 0x10eb]
push edx
call fcn.006665c0
add esp, 0xc
mov dword [ebp - 0x54], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x16c0], eax
cmp dword [ebp - 0x16c0], 0
je 0x525059
cmp dword [ebp - 0x16c0], 1
je 0x525076
jmp 0x525091
push 0x75abc8
lea ecx, [ebp - 0x10ec]
push ecx
call fcn.00666ba0
add esp, 8
mov dword [ebp - 0x54], 1
jmp 0x525091
push str.sn_new
lea edx, [ebp - 0x10ec]
push edx
call fcn.00666ba0
add esp, 8
mov dword [ebp - 0x54], 0xa
push 0
lea eax, [ebp - 0x10ec]
push eax
lea ecx, [ebp - 0x1698]
call fcn.00404540
mov dword [ebp - 0x1228], eax
cmp dword [ebp - 0x1228], 0xffffffff
jne 0x52512a
lea ecx, [ebp - 0x10ec]
push ecx
push str.fail_to_find_indexstring__s._r_n
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov dword [ebp - 0x16b0], 3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1698]
call fcn.004014d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1108]
call fcn.00404770
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1290]
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, dword [ebp - 0x16b0]
jmp 0x5251d6
mov edx, dword [ebp - 0x54]
push edx
lea eax, [ebp - 0x10ec]
push eax
call fcn.00666cf0
add esp, 4
add eax, dword [ebp - 0x1228]
push eax
lea ecx, [ebp - 0x16b4]
push ecx
lea ecx, [ebp - 0x1698]
call fcn.0040fc90
mov dword [ebp - 0x16c4], eax
mov edx, dword [ebp - 0x16c4]
mov dword [ebp - 0x16c8], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x16c8]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040fe20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x16b4]
call fcn.004014d0
mov dword [ebp - 0x16b8], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1698]
call fcn.004014d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1108]
call fcn.00404770
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1290]
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, dword [ebp - 0x16b8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret