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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446ae6
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x45a400]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x45a400]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0xf
pop esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
lea ecx, [esp + 0x14]
push ecx
lea edi, [esp + 0x4c]
mov dword [esp + 0xbc], ebx
call fcn.00413c3e
pop ecx
test al, al
jne 0x408b8e
push 0xc
push str.Unkown_error
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.0040366e
lea eax, [esp + 0x2c]
lea esi, [esp + 0x64]
mov byte [esp + 0xb8], 1
call fcn.00416a20
push 0x455268
mov eax, esi
push eax
call fcn.0042a64b
xor eax, eax
mov dword [esp + 0x1c], ebx
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [esp + 0x18]
mov eax, edi
cdq
cmp dword [esp + 0x20], edx
jg 0x408bda
jl 0x408bbd
cmp dword [esp + 0x1c], eax
jae 0x408bda
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.00403a1b
xor al, al
jmp 0x408cf7
push edi
call fcn.0042824d
mov dword [esp + 0x1c], eax
push edi
push ebx
push eax
mov byte [esp + 0xc8], 2
call fcn.0042a4a0
add esp, 0x10
cmp dword [esp + 0x18], ebx
jne 0x408c44
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xd
push str.Out_of_memory
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.0040366e
lea eax, [esp + 0x2c]
lea esi, [esp + 0x64]
mov byte [esp + 0xb8], 3
call fcn.00416a20
push 0x455268
mov eax, esi
jmp 0x408b88
push ebx
lea eax, [esp + 0x2c]
push eax
push edi
push dword [esp + 0x24]
mov dword [esp + 0x38], ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408cb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edi, [esp + 0x4c]
call fcn.00413b8b
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push str.Unkown_error
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.0040366e
lea eax, [esp + 0x2c]
lea esi, [esp + 0x64]
mov byte [esp + 0xb8], 4
call fcn.00416a20
push 0x455268
mov eax, esi
jmp 0x408b88
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
cmp edi, ebx
jle 0x408cdf
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0x18]
sub esi, eax
mov dl, byte [eax]
cmp dl, byte [esi + eax]
jne 0x408d1b
inc ecx
inc eax
cmp ecx, edi
jl 0x408cd2
push dword [esp + 0x18]
call fcn.00428258
pop ecx
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.00403a1b
mov al, 1
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00428263
mov esp, ebp
pop ebp
ret
push dword [esp + 0x18]
call fcn.00428258
pop ecx
jmp 0x408bc7