Function at 0x4be9e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d8f28
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x104c
call fcn.004cf170
mov eax, dword [0x56e01c]
xor eax, esp
mov dword [esp + 0x1048], eax
push ebx
push esi
push edi
mov eax, dword [0x56e01c]
xor eax, esp
push eax
lea eax, [esp + 0x1060]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, ecx
xor ebx, ebx
mov byte [esi + 0x14], bl
mov edx, dword [esi + 8]
push ebx
lea eax, [esp + 0x24]
push eax
push 0x810
lea ecx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
cmp dword [esp + 0x20], ebx
jbe 0x4bec9a
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
cmp byte [esi + 0x14], bl
jne 0x4bec56
cmp byte [esi + 0x15], bl
jne case.default.0x4bea86
cmp eax, 5
ja case.default.0x4bea86
jmp dword [eax*4 + 0x4bed1c]
mov eax, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push str._nClient_ready_n
push eax
call fcn.004b4c20
add esp, 8
jmp case.default.0x4bea86
mov ecx, dword [esp + 0x38]
mov edx, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0x4f8df4
push ecx
push str._nClient_sent_status:
push edx
call fcn.004b4c20
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.004b4c20
mov eax, dword [esp + 0x40]
add esp, 8
push eax
mov edx, esi
call fcn.004c9320
jmp case.default.0x4bea86
mov ecx, dword [esp + 0x38]
mov edx, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0x4f8df4
push ecx
push str._nClient_sent_status:
push edx
call fcn.004b4c20
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.004b4c20
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
add esp, 8
push eax
push ecx
push esi
call fcn.004c9350
jmp case.default.0x4bea86
mov edx, dword [esp + 0x38]
mov eax, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0x4f8df4
push edx
push str._nClient_sent_error:
push eax
call fcn.004b4c20
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.004b4c20
add esp, 8
push 0x4f81e4
lea ecx, [esp + 0x20]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
mov dword [esp + 0x1068], ebx
mov eax, dword [esp + 0x840]
cmp eax, ebx
jle 0x4bebb0
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.QtCore4.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_unsigned_short_int_const___int_]
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x106c], 1
call dword [sym.imp.QtCore4.dll_public:_class_QString____thiscall_QString::operator_class_QString_const__]
lea ecx, [esp + 0x24]
mov byte [esp + 0x1068], bl
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
mov ecx, dword [esp + 0x3c]
push ecx
push esi
call fcn.004c93f0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1068], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
jmp case.default.0x4bea86
mov edx, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push str._nClient_done_n
push edx
call fcn.004b4c20
add esp, 8
push ebx
mov edx, esi
call fcn.004c9390
jmp case.default.0x4bea86
mov eax, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push str._nClient_done_n
push eax
call fcn.004b4c20
mov ecx, dword [esp + 0x40]
add esp, 8
push ecx
mov edx, esi
call fcn.004c93c0
cmp byte [esi + 0x14], bl
jne 0x4bec56
mov ecx, dword [esi + 8]
push ebx
lea edx, [esp + 0x18]
push edx
push 0x810
lea eax, [esp + 0x850]
push eax
mov dword [esp + 0x858], ebx
push ecx
cmp byte [esi + 0x15], bl
jne 0x4bec81
mov dword [esp + 0x858], 6
jmp 0x4bec8c
mov ecx, dword [esi + 8]
push ebx
lea edx, [esp + 0x18]
push edx
push 0x810
lea eax, [esp + 0x850]
push eax
mov dword [esp + 0x854], 7
mov dword [esp + 0x858], ebx
push ecx
jmp 0x4bec8c
mov dword [esp + 0x858], 8
call edi
test eax, eax
setne al
cmp dword [esp + 0x18], 3
je 0x4becac
cmp al, bl
je 0x4becac
cmp dword [esp + 0x14], 0x810
je 0x4bea32
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4becce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x28]
push eax
push ebx
lea edx, [esp + 0x20]
push 0x56e934
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
call dword [sym.imp.QtCore4.dll_public:_static_void___cdecl_QMetaObject::activate_class_QObject___struct_QMetaObject_const___int__void___]
add esp, 0x10
mov ecx, dword [esp + 0x1060]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1048]
xor ecx, esp
call fcn.004ce3bb
mov esp, ebp
pop ebp
ret