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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aada0
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x4cdbb4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
xor eax, eax
mov esi, ecx
push 0x3ff
push eax
lea ecx, [ebp - 0x413]
mov dword [ebp - 0x420], eax
push ecx
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x418], eax
mov byte [ebp - 0x414], al
call fcn.00487ce0
add esp, 0xc
lea ebx, [esi + 0x404]
push 0x4bc722
mov ecx, ebx
mov byte [esi + 0x408], 0
call fcn.00403b50
push 0x4bc724
lea edx, [ebp - 0x418]
push edi
push edx
mov dword [ebp - 4], 0
call fcn.00488589
add esp, 0xc
test eax, eax
je 0x40371e
push 0x19
push str.The_file_cant_be_opened_
mov ecx, ebx
call fcn.00403e20
mov esi, dword [ebp - 0x41c]
push 0x4bc720
mov ecx, esi
call fcn.004039d0
mov eax, esi
jmp 0x4038f5
push 0
push 0x80
push 3
push 0
push 1
push 0
push edi
mov dword [ebp - 0x42c], 0
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
test edi, edi
jne 0x40374d
push 0x15
push str.Get_file_size_failed_
jmp 0x4036fe
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
mov dword [ebp - 0x430], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x40376f
cmp dword [ebp + 0x18], eax
je 0x40378c
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x428], eax
push 0
mov ecx, dword [ebp - 0x424]
call dword [ebp - 0x428]
or edi, 0xffffffff
nop
mov ecx, dword [ebp - 0x418]
push ecx
push 0x400
lea edx, [ebp - 0x414]
push 1
push edx
call fcn.004894a9
add esp, 0x10
test eax, eax
je 0x403874
inc dword [ebp - 0x42c]
cmp byte [esi + 0x408], 0
je 0x4037d6
push 0x19
lea ecx, [esi + 0x404]
push str.User_terminate_calculate_
jmp 0x403700
mov ecx, eax
lea eax, [ebp - 0x414]
mov edi, edi
mov edx, ecx
dec ecx
test edx, edx
je 0x4037fe
movzx ebx, byte [eax]
mov edx, edi
and edx, 0xff
xor edx, ebx
shr edi, 8
xor edi, dword [esi + edx*4 + 4]
inc eax
jmp 0x4037e0
lea eax, [ebp + 0x14]
call fcn.004033c0
test al, al
jne 0x403859
mov eax, 0x51eb851f
mul dword [ebp - 0x430]
mov ecx, edx
shr ecx, 5
test ecx, ecx
jg 0x403823
mov ecx, 1
mov eax, dword [ebp - 0x42c]
shl eax, 0xa
cdq
idiv ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x428], eax
push dword [ebp - 0x420]
mov ecx, dword [ebp - 0x428]
call dword [ebp - 0x424]
push 0x400
lea edx, [ebp - 0x414]
push 0
push edx
call fcn.00487ce0
add esp, 0xc
jmp 0x403790
mov eax, dword [ebp + 0x14]
not edi
test eax, eax
jne 0x403882
cmp dword [ebp + 0x18], eax
je 0x40389f
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x420], eax
push 0x64
mov ecx, dword [ebp - 0x430]
call dword [ebp - 0x420]
mov ecx, dword [ebp - 0x418]
push ecx
call fcn.004878e7
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x41c]
add esp, 4
push edx
mov ecx, edi
call fcn.00403920
mov eax, esi
jmp 0x4038f5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004874cc
mov esp, ebp
pop ebp
ret 0x14