Function at 0x544250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x188
mov eax, dword [0x5c4738]
xor eax, ebp
mov dword [esp + 0x180], eax
mov ebx, dword [ecx + 0x14]
lea eax, [ebx + 1]
cmp eax, 1
jbe 0x5443e9
mov dword [esp], ecx
xor ecx, ecx
lea eax, [esp + 0x6c]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
lea esi, [esp + 0x78]
xor edi, edi
push 0x104
push 0xff
push esi
call fcn.004d5a00
add esp, 0xc
xor eax, eax
mov dword [esp + 0x68], eax
push eax
lea eax, [esp + 0x6c]
push eax
push 0x103
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
cmp eax, 1
jne 0x5442f5
mov eax, dword [esp + 0x68]
test eax, eax
je 0x5442f5
add edi, eax
cmp edi, 0x2081
jae 0x544549
add eax, esp
add eax, 0x78
lea ecx, [esp + 0x6c]
push eax
push esi
push dword [esp + 0x78]
lea eax, [esp + 0x1c]
push eax
call fcn.00405530
cmp ebx, 1
jne 0x544302
mov eax, dword [esp]
mov ebx, dword [eax + 0x14]
jmp 0x544293
lea eax, [esp + 0x6c]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov byte [esp + 0x68], 0xff
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
sub edx, eax
cmp edx, 2
jae 0x54432f
mov esi, 0xffff
xor ecx, ecx
jmp 0x54433f
movzx esi, word [eax]
mov dword [esp + 8], 2
mov ecx, 2
mov ebx, ecx
or ebx, 1
cmp ebx, edx
ja 0x544364
lea edx, [eax + ebx]
add ecx, eax
sub edx, ecx
je 0x544360
push edx
push ecx
lea eax, [esp + 0x70]
push eax
call fcn.004d4f00
add esp, 0xc
mov dword [esp + 8], ebx
cmp edi, esi
jne 0x5444c3
mov esi, dword [esp]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x544448
add esi, 0x1c
mov dl, byte [esp + 0x68]
mov eax, esi
xor ebx, ebx
cmp byte [ecx + 0x10], dl
setb bl
cmovae eax, ecx
mov ecx, dword [ecx + ebx*4]
test ecx, ecx
jne 0x544383
cmp eax, esi
je 0x544448
mov bl, byte [esp + 0x68]
cmp bl, byte [eax + 0x10]
cmovb eax, esi
cmp eax, esi
je 0x54444c
lea ecx, [esp + 4]
push ecx
call dword [eax + 0x14]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x5443d1
mov dword [esp + 0x70], eax
push eax
call fcn.004cf0d6
add esp, 4
mov ecx, dword [esp + 0x180]
xor ecx, ebp
call fcn.004d25a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esp + 0x10]
push eax
push edi
call fcn.00501dd0
add esp, 8
lea esi, [esp + 0x78]
mov ecx, esi
push edi
push 0x11c
push str.ProcessCommandImpl
push 1
call fcn.00501b30
lea ecx, [esp + 0xb4]
push 0x58a7b1
push str.Pipe_is_not_in_valid_state
call fcn.004fc970
mov ecx, esi
call fcn.00501b70
cmp byte [edi + 0xb], 0
jns 0x544444
push dword [esp + 0x10]
call fcn.004cf0d6
add esp, 4
xor ebx, ebx
jmp 0x5443d1
mov bl, byte [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edi, [esp + 0x14]
push edi
call fcn.00501dd0
add esp, 8
lea esi, [esp + 0x78]
mov ecx, esi
push edi
push 0x147
push str.ProcessCommandImpl
push 1
call fcn.00501b30
lea edi, [esp + 0x80]
lea ecx, [esp + 0xb4]
push 0x58a82a
push str.Cant_find_handler_for_cmd_with_id
call fcn.004fc970
movzx eax, bl
mov ecx, edi
push eax
call fcn.004ff050
mov ecx, esi
call fcn.00501b70
cmp byte [esp + 0x1b], 0
js 0x5444b5
xor ebx, ebx
jmp 0x5443bc
push dword [esp + 0x10]
call fcn.004cf0d6
add esp, 4
jmp 0x5444ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ebx, [esp + 0x14]
push ebx
call fcn.00501dd0
add esp, 8
lea ecx, [esp + 0x78]
push ebx
push 0x141
push str.ProcessCommandImpl
push 1
call fcn.00501b30
lea ebx, [esp + 0x80]
lea ecx, [esp + 0xb4]
push 0x58a7f8
push str.Corrupted_command:
call fcn.004fc970
mov ecx, ebx
push esi
call fcn.004ff050
mov ebx, eax
lea ecx, [eax + 0x34]
push 0x58a806
push str._bytes_sent_
call fcn.004fc970
mov ecx, ebx
push edi
call fcn.004fee80
lea ecx, [eax + 0x34]
push 0x58a7e4
push str._bytes_read
call fcn.004fc970
lea ecx, [esp + 0x78]
jmp 0x5444a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 4]
push eax
push esi
call fcn.00501dd0
add esp, 8
lea ecx, [esp + 0x10]
push esi
push 0x133
push str.ProcessCommandImpl
push 1
call fcn.00501b30
lea ebx, [esp + 0x18]
lea ecx, [esp + 0x4c]
push 0x58a7d8
push str.Pipe_command_data_size_exceeds_limit:
call fcn.004fc970
mov ecx, ebx
push edi
call fcn.004fee80
lea ecx, [eax + 0x34]
push 0x58a7e4
push str._bytes_read
call fcn.004fc970
lea ecx, [esp + 0x10]
call fcn.00501b70
cmp byte [esi + 0xb], 0
jns 0x5444ae
push dword [esp + 4]
jmp 0x5444b9