Function at 0x49373a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8bec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov dword [ebp - 0x90], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 0x14], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x49379e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4939d3
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
push 0
lea edx, [ebp - 0x10]
push edx
push 0xc
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4937d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x49387f
cmp dword [ebp - 0x10], 0xc
jae 0x4937e6
mov dword [ebp - 0x14], 0x85670e03
jmp 0x49387f
push 0xc
push str.HRPARTITIONS
lea edx, [ebp - 0x28]
push edx
call fcn.004aad40
add esp, 0xc
test eax, eax
je 0x493806
mov dword [ebp - 0x14], 0x85670e03
jmp 0x49387f
push 0
lea eax, [ebp - 0x10]
push eax
push 2
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493826
cmp dword [ebp - 0x10], 2
je 0x493831
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x49387f
mov eax, dword [ebp - 0x18]
and eax, 0xffff
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0x400
je 0x49384d
jmp 0x493878
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49386d
cmp dword [ebp - 0x10], 4
je 0x493876
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x49387f
mov dword [ebp - 0x14], 0x85670e03
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040b6c0
add esp, 4
and eax, 0xff
test eax, eax
je 0x4939c6
mov dword [ebp - 0x30], 0
jmp 0x4938aa
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x1c]
jae 0x4939c6
mov dword [ebp - 0x34], 0xffffffff
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4938dd
cmp dword [ebp - 0x10], 4
je 0x4938eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x4939c6
push 1
mov ecx, dword [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x90]
call fcn.00493228
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x493948
mov dword [ebp - 0x3c], 0
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.00467cc5
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040b6a0
add esp, 4
and eax, 0xff
test eax, eax
je 0x493939
jmp 0x4939c6
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x4939c1
push 0x537890
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x88]
call fcn.004673b3
mov dword [ebp - 4], 0
mov dword [ebp - 0x8c], 0
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x88]
call fcn.00467cc5
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.0040b6a0
add esp, 4
and eax, 0xff
test eax, eax
je 0x4939af
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00467450
jmp 0x4939c6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00467450
jmp 0x4938a1
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8