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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41af99
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x429008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push 0
push 0x80
push 3
push 0
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
push 1
cmovae eax, dword [ebp + 8]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xb0], eax
cmp eax, 0xffffffff
jne 0x405aa5
push str.CreateFile_error._n
call fcn.004051c0
movups xmm0, xmmword [ebp - 0x2c]
mov edx, dword [ebp + 0x1c]
add esp, 4
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
cmp edx, 0x10
jb 0x405a88
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405a7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e69
push edx
push ecx
call fcn.00407d02
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407876
mov esp, ebp
pop ebp
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov esi, eax
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0040cd2d
add esp, 4
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0x14]
push 0
push ecx
push esi
mov esi, dword [ebp - 0xb0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405aee
push str.ReadFile_error._n
jmp 0x405a27
push dword [ebp - 0x14]
push str.size:_d_n
call fcn.004051c0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0xa8]
mov ecx, esi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405b30
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.00404f30
push esi
mov byte [ebp - 4], 2
call fcn.0040cd12
add esp, 4
mov dword [ebp - 0x8c], 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
push 0xb
push str._homepage_:
call fcn.00404f30
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 0x429928
call fcn.004071e0
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp - 0x8c]
mov ecx, esp
push eax
call fcn.004071e0
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa4]
call fcn.00405490
add esp, 0x30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
push 0xc
mov dword [ebp - 0x74], 0
push str._exit_type_:
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
call fcn.00404f30
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5c]
push 6
mov dword [ebp - 0x5c], 0
push str.Normal
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.00404f30
sub esp, 0x18
mov byte [ebp - 4], 7
lea eax, [ebp - 0x5c]
mov dword [ebp - 0xa8], esp
mov ecx, esp
push eax
call fcn.004071e0
sub esp, 0x18
mov byte [ebp - 4], 8
lea eax, [ebp - 0x74]
mov ecx, esp
push eax
call fcn.004071e0
lea edx, [ebp - 0xa4]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xd8]
call fcn.00405490
lea ecx, [ebp - 0x2c]
add esp, 0x30
cmp ecx, eax
je 0x405c88
movq xmm1, qword [eax + 0x10]
movups xmm0, xmmword [eax]
mov dword [eax + 0x10], 0
movq qword [ebp - 0xac], xmm1
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
jmp 0x405c99
movq xmm0, qword [ebp - 0x1c]
movq qword [ebp - 0xac], xmm0
movups xmm0, xmmword [ebp - 0x2c]
mov edx, dword [ebp - 0xc4]
movups xmmword [ebp - 0xc0], xmm0
cmp edx, 0x10
jb 0x405cda
mov ecx, dword [ebp - 0xd8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405cd0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e6e
push edx
push ecx
call fcn.00407d02
add esp, 8
movups xmm0, xmmword [ebp - 0xc0]
mov edx, dword [ebp - 0x48]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0xac]
movq qword [edi + 0x10], xmm0
cmp edx, 0x10
jb 0x405d39
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405d2f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e69
push edx
push ecx
call fcn.00407d02
add esp, 8
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
jb 0x405d6d
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405d63
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e69
push edx
push ecx
call fcn.00407d02
add esp, 8
mov edx, dword [ebp - 0x90]
cmp edx, 0x10
jb 0x405da7
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405d9d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e69
push edx
push ecx
call fcn.00407d02
add esp, 8
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
cmp edx, 0x10
jb 0x405df5
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405deb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e69
push edx
push ecx
call fcn.00407d02
add esp, 8
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x405e25
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405e1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e69
push edx
push ecx
call fcn.00407d02
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp edx, 0x10
jb 0x405a88
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405a7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405a7e
call fcn.0040abee
call fcn.0040abee
int3