Function at 0x4d4c40
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x14], 0x1000
mov dword [ebp - 0xc], 0
push 0x1002
call fcn.004199e0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4d4c76
or eax, 0xffffffff
jmp 0x4d4e75
push 0x1002
push 0
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.004158c0
push eax
call fcn.005bfd50
add esp, 0xc
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x1c], 0x64
jae 0x4d4cb8
mov ecx, dword [ebp - 0x3c]
xor ebx, ebx
cmp dword [ecx + 0x1c], 1
setne bl
add ebx, 0x46
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.004158c0
mov byte [eax], bl
jmp 0x4d4cc6
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.004158c0
mov byte [eax], 0x26
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.004158c0
add eax, 1
mov dword [ebp - 4], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x14], 0xffffffff
je 0x4d4de0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x20]
push eax
push 0x1000
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d4d87
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4d4d70
cmp dword [ebp - 0x38], 1
jne 0x4d4d6e
mov dword [ebp - 0xc], 1
jmp 0x4d4de0
push 0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp dword [ebp - 0x20], 0
je 0x4d4ddb
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x20]
mov byte [eax], 0
mov ecx, dword [ebp - 0x20]
add ecx, 2
push ecx
mov ecx, dword [ebp - 8]
call fcn.00419a70
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x20], 0
je 0x4d4dd3
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x20]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx]
call eax
test eax, eax
je 0x4d4dd3
jmp 0x4d4de0
mov ecx, dword [ebp - 8]
call fcn.004d5020
jmp 0x4d4ce8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x20], 0
je 0x4d4e20
mov eax, dword [ebp - 4]
mov byte [eax], 0
push 2
mov ecx, dword [ebp - 8]
call fcn.00419a70
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x20]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x20]
mov edx, dword [edx]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0xc], 0
jne 0x4d4e42
push 0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004d4680
add esp, 4
cmp dword [0x69aaa4], 3
jg 0x4d4e73
push str.shell_exit.
push 0x15c
push str..TProcess.cpp
push 3
call fcn.00401310
add esp, 0x10
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret