Function at 0x422aa0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd84d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x53e180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x34]
call fcn.00422cc0
lea eax, [ebp - 0x28]
push eax
call fcn.0041bbd0
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x422b02
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x28]
call fcn.004239a0
jmp 0x422b0e
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402a50
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x28]
call fcn.00402ba0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x422b61
push 0
push str.Error_opening_file
mov ecx, dword [ebp - 0x34]
call fcn.00423940
mov byte [ebp - 0x29], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402a80
mov al, byte [ebp - 0x29]
jmp 0x422c98
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x422b9f
push 0
push str.File_is_empty
mov ecx, dword [ebp - 0x34]
call fcn.00423940
mov byte [ebp - 0x2a], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402a80
mov al, byte [ebp - 0x2a]
jmp 0x422c98
cmp dword [ebp - 0x38], 0x400000
jbe 0x422bd1
push 0
push str.File_too_large
mov ecx, dword [ebp - 0x34]
call fcn.00423940
mov byte [ebp - 0x2b], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402a80
mov al, byte [ebp - 0x2b]
jmp 0x422c98
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0x38]
push edx
call fcn.004c661d
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
push 0
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x38]
je 0x422c57
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004c6626
add esp, 4
mov ecx, dword [ebp - 0x34]
call fcn.00422cc0
push 0
push str.Could_not_read_file
mov ecx, dword [ebp - 0x34]
call fcn.00423940
mov byte [ebp - 0x2c], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402a80
mov al, byte [ebp - 0x2c]
jmp 0x422c98
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x34]
call fcn.00422800
mov byte [ebp - 0x2d], al
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.004c6626
add esp, 4
mov dl, byte [ebp - 0x2d]
mov byte [ebp - 0x2e], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402a80
mov al, byte [ebp - 0x2e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c662b
mov esp, ebp
pop ebp
ret 8