Function at 0x5ee260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bc388
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x7a1070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x54], eax
test eax, eax
je 0x5ee48a
cmp dword [ebp + 0xc], ebx
je 0x5ee48a
lea esi, [edi + 0x1064]
mov dword [ebp - 0x38], ebx
push esi
lea eax, [ebp - 0x38]
mov dword [ebp - 0x24], ebx
push eax
push dword [edi + 0x104c]
call dword [sym.imp.KERNEL32.dll_WaitCommEvent]
push 1
lea eax, [ebp - 0x24]
push eax
push esi
push dword [edi + 0x104c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x5ee32e
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], ebx
push eax
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
push dword [edi + 0x104c]
movq qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push dword [edi + 0x1074]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [edi + 0x1c]
call fcn.004b0d40
push eax
push str.CSerial::Read:__s__GetOverlappedResult_1__errno:__d
push 4
push 0x7ecd40
call fcn.005e2670
add esp, 0x14
jmp 0x5ee4a7
push dword [edi + 0x1074]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call esi
test byte [ebp - 0x38], 1
je 0x5ee420
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], ebx
push eax
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
push dword [edi + 0x104c]
movq qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x5ee379
push dword [edi + 0x1088]
call esi
jmp 0x5ee4a7
cmp ecx, dword [ebp + 0xc]
lea ebx, [edi + 0x1078]
push ebx
cmovg ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
push ecx
push dword [ebp - 0x54]
push dword [edi + 0x104c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5ee40f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x5ee36c
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [edi + 0x104c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x5ee40f
mov dword [ebp - 0x2c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x34]
movq qword [ebp - 0x34], xmm0
push eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x104c]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push dword [edi + 0x1088]
call esi
push dword [ebp - 0x28]
lea ecx, [edi + 0x1c]
call fcn.004b0d40
push eax
push str.CSerial::Read:__s__GetOverlappedResult_2__errno:__d
push 4
push 0x7ecd40
call fcn.005e2670
add esp, 0x14
jmp 0x5ee4a7
push dword [edi + 0x1088]
mov ebx, dword [ebp - 0x24]
call esi
add dword [edi + 0x1448], ebx
test byte [edi + 0x144c], 2
je 0x5ee486
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
push ebx
call fcn.005e2e20
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push dword [edi + 0x1448]
xorps xmm0, xmm0
push str.:_010u_n
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.005182b0
add esp, 0x10
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x50]
push eax
call fcn.004e1450
lea ecx, [ebp - 0x50]
call fcn.004b0d40
push eax
lea ecx, [edi + 0x1450]
push ecx
call fcn.0064d3b0
add esp, 8
lea ecx, [ebp - 0x50]
call fcn.004b0f30
mov eax, ebx
jmp 0x5ee4a9
lea ecx, [edi + 0x1c]
call fcn.004b0d40
push eax
push str.CSerial::Read:__s__Parameter_error
push 4
push 0x7ecd40
call fcn.005e2670
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0065c160
mov esp, ebp
pop ebp
ret 8