Function at 0x4dca00
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5753dc
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0
push 0x80
push 3
push 0
push 0
push bind
lea ecx, [ebp + 8]
call fcn.00406410
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4dccde
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x40]
call fcn.00408982
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x589208
mov edx, dword [ebp - 0x1c]
push edx
push 0
push 2
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4dcb9f
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.004ddaf0
add esp, 8
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x24]
movsx edx, byte [ecx]
cmp edx, 0xffffffef
jne 0x4dcb28
mov eax, dword [ebp - 0x24]
movsx ecx, byte [eax + 1]
cmp ecx, 0xffffffbb
jne 0x4dcb28
mov edx, dword [ebp - 0x24]
movsx eax, byte [edx + 2]
cmp eax, 0xffffffbf
je 0x4dcb2e
cmp dword [ebp - 0x44], 0
je 0x4dcb45
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.004dc8d0
push eax
lea ecx, [ebp - 0x40]
call fcn.0041b5d0
jmp 0x4dcb7f
mov edx, dword [ebp - 0x24]
movsx eax, byte [edx]
cmp eax, 0xffffffff
jne 0x4dcb6a
mov ecx, dword [ebp - 0x24]
movsx edx, byte [ecx + 1]
cmp edx, 0xfffffffe
jne 0x4dcb6a
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x40]
call fcn.0041b5d0
jmp 0x4dcb7f
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.004dc970
push eax
lea ecx, [ebp - 0x40]
call fcn.0041b5d0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4dccb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x1c], 0
je 0x4dccb6
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0050721e
add esp, 4
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0053c870
add esp, 0xc
push 0
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x4dcc97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004ddaf0
add esp, 8
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x24]
movsx eax, byte [edx]
cmp eax, 0xffffffef
jne 0x4dcc40
mov ecx, dword [ebp - 0x24]
movsx edx, byte [ecx + 1]
cmp edx, 0xffffffbb
jne 0x4dcc40
mov eax, dword [ebp - 0x24]
movsx ecx, byte [eax + 2]
cmp ecx, 0xffffffbf
je 0x4dcc46
cmp dword [ebp - 0x4c], 0
je 0x4dcc5d
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.004dc8d0
push eax
lea ecx, [ebp - 0x40]
call fcn.0041b5d0
jmp 0x4dcc97
mov eax, dword [ebp - 0x24]
movsx ecx, byte [eax]
cmp ecx, 0xffffffff
jne 0x4dcc82
mov edx, dword [ebp - 0x24]
movsx eax, byte [edx + 1]
cmp eax, 0xfffffffe
jne 0x4dcc82
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0041b5d0
jmp 0x4dcc97
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.004dc970
push eax
lea ecx, [ebp - 0x40]
call fcn.0041b5d0
cmp dword [ebp - 0x24], 0
je 0x4dccb6
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.0053f10f
add esp, 4
mov dword [ebp - 0x24], 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x58], esp
lea edx, [ebp - 0x40]
push edx
call fcn.00408ba7
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x5c]
call fcn.004dd500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406210
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406210
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret 0x1c