Function at 0x5089e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ad8fb
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x43c]
call fcn.00401490
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
cmp dword [0xed263c], 0
jne 0x508bb6
push 0x400
push 0
lea eax, [ebp - 0x424]
push eax
call fcn.006665c0
add esp, 0xc
push 0x400
push 0
push 0xed2238
call fcn.006665c0
add esp, 0xc
mov ecx, 1
test ecx, ecx
je 0x508b8f
push 0
lea edx, [ebp - 0x42c]
push edx
push 0x200
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [0x7dcbf0]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x508b37
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x428], eax
lea edx, [ebp - 0x438]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [0x7dcbf0]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x428]
push eax
push str.Failed_to_receive_data_Error_Code_ld:_ld__
lea ecx, [ebp - 0x43c]
push ecx
call fcn.004017f0
add esp, 0x10
push 0
push 0x74d658
lea ecx, [ebp - 0x43c]
call fcn.00489570
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [0x7dcbf0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x440], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call fcn.004014d0
mov eax, dword [ebp - 0x440]
jmp 0x508c97
cmp dword [ebp - 0x42c], 0
jne 0x508b88
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x508b6f
mov dword [ebp - 0x444], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call fcn.004014d0
mov eax, dword [ebp - 0x444]
jmp 0x508c97
cmp dword [ebp - 0x1c], 0
je 0x508b7d
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
jmp 0x508b8a
jmp 0x508b8f
jmp 0x508a69
mov edx, dword [ebp - 0x42c]
push edx
lea eax, [ebp - 0x424]
push eax
push 0xed2238
call fcn.00668860
add esp, 0xc
mov ecx, dword [ebp - 0x42c]
mov dword [0xed263c], ecx
mov edx, dword [ebp + 0xc]
cmp edx, dword [0xed263c]
jbe 0x508c1b
mov eax, dword [0xed263c]
push eax
mov ecx, dword [0xed2638]
add ecx, 0xed2238
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00668860
add esp, 0xc
mov dword [0xed2638], 0
mov dword [0xed263c], 0
mov eax, dword [0xed263c]
mov dword [ebp - 0x448], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call fcn.004014d0
mov eax, dword [ebp - 0x448]
jmp 0x508c97
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0xed2638]
add edx, 0xed2238
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00668860
add esp, 0xc
mov ecx, dword [0xed2638]
add ecx, dword [ebp + 0xc]
mov dword [0xed2638], ecx
mov edx, dword [0xed263c]
sub edx, dword [ebp + 0xc]
mov dword [0xed263c], edx
jne 0x508c62
mov dword [0xed2638], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call fcn.004014d0
mov eax, dword [ebp - 0x44c]
jmp 0x508c97
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret