Function at 0x4d3003
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a1a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0
push 0x57f85c
lea eax, [ebp + 8]
push eax
call fcn.004b9310
and eax, 0xff
test eax, eax
je 0x4d305d
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0051c506
mov eax, dword [ebp - 0x20]
jmp 0x4d3234
cmp dword [ebp + 0xc], 0
jne 0x4d3081
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0051c506
mov eax, dword [ebp - 0x24]
jmp 0x4d3234
cmp dword [ebp + 0x10], 0
jge 0x4d30ab
cmp dword [ebp + 0x10], 2
jle 0x4d30ab
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0051c506
mov eax, dword [ebp - 0x28]
jmp 0x4d3234
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea ecx, [ebp + 8]
call fcn.0040e3d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4d30f3
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0051c506
mov eax, dword [ebp - 0x2c]
jmp 0x4d3234
push 0
push 0
push 0x4a
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x14]
push edx
push 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0
je 0x4d3130
cmp dword [ebp - 0x48], 1
je 0x4d3183
jmp 0x4d3211
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0xda
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0051c506
mov eax, dword [ebp - 0x30]
jmp 0x4d3234
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x10]
jl 0x4d31b3
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0051c506
mov eax, dword [ebp - 0x34]
jmp 0x4d3234
push 0
push 0
mov edx, dword [ebp + 0x14]
imul edx, edx, 0x3fa
add edx, 0xda
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0x3fa
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0051c506
mov eax, dword [ebp - 0x38]
jmp 0x4d3234
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0051c506
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10