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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ac1ce
mov eax, dword fs:[0]
push eax
sub esp, 0x4f8
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x90], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4f0], ecx
lea ecx, [ebp - 0x20]
call fcn.00401490
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push str.in_ATExecuteCmdLine__cmdline_s_r_n
lea ecx, [ebp - 0x20]
push ecx
call fcn.004017f0
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x4cc], esp
lea edx, [ebp - 0x20]
push edx
call fcn.004014b0
mov dword [ebp - 0x4f4], eax
mov ecx, dword [ebp - 0x4f0]
call fcn.004e8c70
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov dword [ebp - 0x40], 0xc
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 1
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4e82bd
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004014d0
mov eax, dword [ebp - 0x4d0]
jmp 0x4e8c52
push 0x44
push 0
lea eax, [ebp - 0x8c]
push eax
call fcn.006665c0
add esp, 0xc
push 0
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x8c], 0x44
lea edx, [ebp - 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x60], 0x100
xor edx, edx
mov word [ebp - 0x5c], dx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x8c]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4e83ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4a0], eax
push 0
push 0
lea eax, [ebp - 0x49c]
push eax
push 0x400
mov ecx, dword [ebp - 0x4a0]
push ecx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x49c]
push edx
mov eax, dword [ebp + 8]
push eax
push str.::ATExecuteCmdLine___failed_at_CreateProcess___nCommand___s_r_nMessage___s_r_n
lea ecx, [ebp - 0x20]
push ecx
call fcn.004017f0
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x4d4], esp
lea edx, [ebp - 0x20]
push edx
call fcn.004014b0
mov dword [ebp - 0x4f8], eax
mov ecx, dword [ebp - 0x4f0]
call fcn.004e8c70
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [ebp - 0x49c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x4d8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004014d0
mov eax, dword [ebp - 0x4d8]
jmp 0x4e8c52
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2c]
push edx
push 0x73a6e4
lea eax, [ebp - 0x20]
push eax
call fcn.004017f0
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x4dc], esp
lea edx, [ebp - 0x20]
push edx
call fcn.004014b0
mov dword [ebp - 0x4fc], eax
mov ecx, dword [ebp - 0x4f0]
call fcn.004e8c70
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov dword [ebp - 0x18], 0x400
push 0x738db2
lea ecx, [ebp - 0x14]
call fcn.0040dbe0
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0
mov eax, 1
test eax, eax
je 0x4e84d3
push 0
lea ecx, [ebp - 0x498]
push ecx
push 0x3ff
lea edx, [ebp - 0x494]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4e848f
jmp 0x4e84d3
mov ecx, dword [ebp - 0x498]
mov byte [ebp + ecx - 0x494], 0
lea edx, [ebp - 0x494]
push edx
lea ecx, [ebp - 0x4a4]
call fcn.0040dbe0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4a4]
push eax
lea ecx, [ebp - 0x14]
call fcn.004174c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4a4]
call fcn.004014d0
jmp 0x4e845f
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x4e853d
push ecx
mov ecx, esp
mov dword [ebp - 0x4e0], esp
lea edx, [ebp - 0x14]
push edx
call fcn.004014b0
mov dword [ebp - 0x500], eax
mov ecx, dword [ebp - 0x4f0]
call fcn.004e8c70
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
push 0
push 0x73a6f8
lea ecx, [ebp - 0x14]
call fcn.00404540
cmp eax, 0xffffffff
jne 0x4e8579
push 0
push 0x73a700
lea ecx, [ebp - 0x14]
call fcn.00404540
cmp eax, 0xffffffff
jne 0x4e8579
push 0
push 0x73a710
lea ecx, [ebp - 0x14]
call fcn.00404540
cmp eax, 0xffffffff
je 0x4e85ea
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
mov ecx, dword [ebp - 0x14]
push ecx
push 0x73a718
lea edx, [ebp - 0x20]
push edx
call fcn.004017f0
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x4e4], esp
lea eax, [ebp - 0x20]
push eax
call fcn.004014b0
mov dword [ebp - 0x504], eax
mov ecx, dword [ebp - 0x4f0]
call fcn.004e8c70
mov dword [ebp - 0x4e8], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004014d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004014d0
mov eax, dword [ebp - 0x4e8]
jmp 0x4e8c52
push str.flash_exsn
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404520
add esp, 8
test eax, eax
je 0x4e8671
mov dword [ebp - 0x4a8], 0
push 0
push 0x73a72c
lea ecx, [ebp - 0x14]
call fcn.00404540
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], 0xffffffff
je 0x4e8663
mov edx, dword [ebp - 0x4a8]
add edx, 1
push edx
push 0x73a734
lea ecx, [ebp - 0x14]
call fcn.00404540
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], 0xffffffff
je 0x4e8658
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
jmp 0x4e8661
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffff
jmp 0x4e866c
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xffffffff
jmp 0x4e8896
push str.getvar_exsn
mov eax, dword [ebp + 8]
push eax
call fcn.00404520
add esp, 8
test eax, eax
je 0x4e8896
push 0x738db3
mov ecx, dword [ebp - 0x4f0]
add ecx, 0x10c
call fcn.0040dc60
mov dword [ebp - 0x4ac], 0
push 0
push 0x73a748
lea ecx, [ebp - 0x14]
call fcn.00404540
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x4e888d
push str.exsn:
call fcn.00666cf0
add esp, 4
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x24], edx
push 0x738dc9
lea ecx, [ebp - 0x4b4]
call fcn.0040dbe0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00413960
movsx ecx, al
cmp ecx, 0xa
je 0x4e87f4
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x14]
call fcn.00413960
movsx eax, al
cmp eax, 0xd
je 0x4e87f4
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00413960
movsx edx, al
cmp edx, 0x30
jl 0x4e8749
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00413960
movsx ecx, al
cmp ecx, 0x39
jle 0x4e8799
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x14]
call fcn.00413960
movsx eax, al
cmp eax, 0x61
jl 0x4e8771
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00413960
movsx edx, al
cmp edx, 0x7a
jle 0x4e8799
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00413960
movsx ecx, al
cmp ecx, 0x41
jl 0x4e879b
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x14]
call fcn.00413960
movsx eax, al
cmp eax, 0x5a
jg 0x4e879b
jmp 0x4e87cb
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00413960
movsx edx, al
cmp edx, 0x20
jne 0x4e87bf
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
jmp 0x4e86f1
mov dword [ebp - 0x4ac], 1
jmp 0x4e87f4
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00413960
movzx edx, al
push edx
lea ecx, [ebp - 0x4b4]
call fcn.004baae0
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
jmp 0x4e86f1
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x4b0]
call fcn.004014b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4b0]
call fcn.00413770
lea ecx, [ebp - 0x4b4]
call fcn.004014f0
test eax, eax
je 0x4e8841
push 0x73a758
lea ecx, [ebp - 0x4b0]
call fcn.004138f0
test eax, eax
je 0x4e8841
cmp dword [ebp - 0x4ac], 1
jne 0x4e884c
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xffffffff
jmp 0x4e886d
lea eax, [ebp - 0x4b4]
push eax
mov ecx, dword [ebp - 0x4f0]
add ecx, 0x10c
call fcn.0040fe20
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4b0]
call fcn.004014d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4b4]
call fcn.004014d0
jmp 0x4e8896
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xffffffff
push str.flash_paxcfg
mov eax, dword [ebp + 8]
push eax
call fcn.00404520
add esp, 8
test eax, eax
jne 0x4e88d5
push str.flash_sp_boot
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404520
add esp, 8
test eax, eax
jne 0x4e88d5
push str.flash_sp_monitor
mov edx, dword [ebp + 8]
push edx
call fcn.00404520
add esp, 8
test eax, eax
je 0x4e8942
mov dword [ebp - 0x4b8], 0
push 0
push 0x73a794
lea ecx, [ebp - 0x14]
call fcn.00404540
mov dword [ebp - 0x4b8], eax
cmp dword [ebp - 0x4b8], 0xffffffff
je 0x4e8939
mov eax, dword [ebp - 0x4b8]
add eax, 1
push eax
push 0x73a79c
lea ecx, [ebp - 0x14]
call fcn.00404540
mov dword [ebp - 0x4b8], eax
cmp dword [ebp - 0x4b8], 0xffffffff
je 0x4e892e
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
jmp 0x4e8937
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xffffffff
jmp 0x4e8942
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
push str.flash_cfg
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404520
add esp, 8
test eax, eax
je 0x4e89c9
mov dword [ebp - 0x4bc], 0
push 0
push 0x73a7b0
lea ecx, [ebp - 0x14]
call fcn.00404540
mov dword [ebp - 0x4bc], eax
cmp dword [ebp - 0x4bc], 0xffffffff
je 0x4e89bb
mov edx, dword [ebp - 0x4bc]
add edx, 1
push edx
push 0x73a7b8
lea ecx, [ebp - 0x14]
call fcn.00404540
mov dword [ebp - 0x4bc], eax
cmp dword [ebp - 0x4bc], 0xffffffff
je 0x4e89b0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
jmp 0x4e89b9
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffff
jmp 0x4e89c4
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xffffffff
jmp 0x4e8c27
push str.erase_pax_config
mov eax, dword [ebp + 8]
push eax
call fcn.00404520
add esp, 8
test eax, eax
je 0x4e8a0b
push 0
push 0x73a7d4
lea ecx, [ebp - 0x14]
call fcn.00404540
cmp eax, 0xffffffff
je 0x4e89fd
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
jmp 0x4e8a06
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xffffffff
jmp 0x4e8c27
push str.getvar_sp_extsn
mov eax, dword [ebp + 8]
push eax
call fcn.00404520
add esp, 8
test eax, eax
je 0x4e8b90
push 0
push str.finished
lea ecx, [ebp - 0x14]
call fcn.00404540
cmp eax, 0xffffffff
je 0x4e8b82
push 0x738dca
mov ecx, dword [ebp - 0x4f0]
add ecx, 0x10c
call fcn.0040dc60
push 0
push 0x73a7f8
lea ecx, [ebp - 0x14]
call fcn.00404540
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x4e8b77
push str.sp_extsn:
call fcn.00666cf0
add esp, 4
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x24], edx
push 0x738dcb
lea ecx, [ebp - 0x4c4]
call fcn.0040dbe0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00413960
movsx ecx, al
cmp ecx, 0xa
je 0x4e8ae7
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x14]
call fcn.00413960
movsx eax, al
cmp eax, 0xd
je 0x4e8ae7
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00413960
movzx edx, al
push edx
lea ecx, [ebp - 0x4c4]
call fcn.004baae0
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
jmp 0x4e8a99
lea ecx, [ebp - 0x4c4]
push ecx
lea ecx, [ebp - 0x4c0]
call fcn.004014b0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4c0]
call fcn.00413770
lea ecx, [ebp - 0x4c4]
call fcn.004014f0
test eax, eax
je 0x4e8b2b
push str.NULL
lea ecx, [ebp - 0x4c0]
call fcn.004138f0
test eax, eax
jne 0x4e8b36
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xffffffff
jmp 0x4e8b57
lea eax, [ebp - 0x4c4]
push eax
mov ecx, dword [ebp - 0x4f0]
add ecx, 0x10c
call fcn.0040fe20
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c0]
call fcn.004014d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c4]
call fcn.004014d0
jmp 0x4e8b80
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xffffffff
jmp 0x4e8b8b
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
jmp 0x4e8c27
push str.flash_rotpk
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404520
add esp, 8
test eax, eax
jne 0x4e8bba
push str.flash_sp_time
mov edx, dword [ebp + 8]
push edx
call fcn.00404520
add esp, 8
test eax, eax
je 0x4e8c27
mov dword [ebp - 0x4c8], 0
push 0
push 0x73a834
lea ecx, [ebp - 0x14]
call fcn.00404540
mov dword [ebp - 0x4c8], eax
cmp dword [ebp - 0x4c8], 0xffffffff
je 0x4e8c1e
mov eax, dword [ebp - 0x4c8]
add eax, 1
push eax
push 0x73a83c
lea ecx, [ebp - 0x14]
call fcn.00404540
mov dword [ebp - 0x4c8], eax
cmp dword [ebp - 0x4c8], 0xffffffff
je 0x4e8c13
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
jmp 0x4e8c1c
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xffffffff
jmp 0x4e8c27
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
mov dword [ebp - 0x4ec], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004014d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004014d0
mov eax, dword [ebp - 0x4ec]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x90]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret 0xc