Function at 0x4372f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fbb0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x491d58]
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 eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov esi, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x4373b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
mov eax, 7
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], eax
xor ecx, ecx
xor edx, edx
mov eax, 1
mov dword [ebp - 0x54], vtable.LogItem.0
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x50], cx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], dx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
push eax
push str.Cannot_create_read_event._Error:
lea ecx, [ebp - 0x54]
call fcn.00403090
mov ecx, eax
call fcn.00402eb0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00402d10
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x437506
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0x58]
lea edx, [ebp - 0x5c]
push edx
mov edx, dword [esi + 0x20]
push eax
push ecx
push edx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x58], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x58], ebx
jne 0x437409
cmp eax, 0x3e5
je 0x437409
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp edi, 0xffffffff
je 0x437401
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x437506
mov eax, dword [esi + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x437470
mov eax, 7
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], eax
xor ecx, ecx
xor edx, edx
mov eax, 1
mov dword [ebp - 0x54], vtable.LogItem.0
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x50], cx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], dx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
push str.Timeout_occured_while_reading_from_heci_device.
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x14], eax
call fcn.00403090
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00402d10
push esi
mov ecx, edi
call fcn.00436240
jmp 0x4373f5
mov edx, dword [esi + 0x20]
push 1
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x74]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, ebx
jne 0x4374f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
mov eax, 7
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], eax
xor ecx, ecx
xor edx, edx
mov eax, 1
mov dword [ebp - 0x54], vtable.LogItem.0
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x50], cx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], dx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
push eax
push str.Read_function_fail_to_finish._Error:
lea ecx, [ebp - 0x54]
call fcn.00403090
mov ecx, eax
call fcn.00402eb0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00402d10
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
jmp 0x4373f5
mov esi, dword [ebp - 0x5c]
cmp edi, 0xffffffff
je 0x437504
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
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.0044ce4c
mov esp, ebp
pop ebp
ret 8