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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push ecx
xor ebx, ebx
lea ecx, [ebp - 0x38]
push 0x100000
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.1800b46e
call fcn.180a5f46
mov edi, eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
mov edx, ebx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x180a606e
push ebx
push 0x80
push 3
push ebx
push 1
push 1
push dword [ecx + edx*4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x180a6128
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push eax
push esi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180a6128
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
adc ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
cmp ecx, ebx
ja 0x180a6121
jb 0x180a6006
cmp eax, 0x40000000
ja 0x180a6121
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], eax
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180a6128
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x180a6044
push ecx
push dword [ebp - 0x38]
lea eax, [edi + 8]
push eax
call fcn.1811fead
mov ecx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [ebp - 0x18]
cmp ecx, eax
je 0x180a6012
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
inc edx
mov dword [ebp - 0x14], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
cmp edx, eax
jb 0x180a5fa5
push ecx
push 0x20
lea ecx, [ebp - 0x2c]
call fcn.180a6176
lea eax, [edi + 8]
push eax
call fcn.1811ff02
mov esi, dword [ebp - 0x2c]
pop ecx
push 0x20
push eax
push esi
call fcn.18149290
mov eax, dword [ebp + 0x14]
add esp, 0xc
push 0x20
test eax, eax
je 0x180a613d
push esi
push dword [eax]
call fcn.1814985a
add esp, 0xc
test eax, eax
je 0x180a6151
call fcn.180040b1
push eax
lea ecx, [ebp + 8]
call fcn.1800717c
push ecx
lea eax, [ebp + 8]
mov ecx, esi
push eax
push 0x20
pop edx
call fcn.1800ceb0
mov esi, dword [ebp + 8]
pop ecx
pop ecx
movzx ecx, byte [0x181d6aa2]
neg ecx
sbb ecx, ecx
and ecx, 0x181d5c50
je 0x180a6112
push 9
pop eax
xor edx, edx
mov dword [ebp - 0x48], ecx
inc edx
mov dword [ebp - 0x44], eax
push edx
push eax
mov dword [ebp - 0x40], edx
call fcn.18005e59
push esi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
push str._actual_hash_S_
push eax
call fcn.18004253
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.18004715
mov ebx, 0x80040204
jmp 0x180a6151
mov ebx, 0x80040205
jmp 0x180a612f
call fcn.18013e1e
mov ebx, eax
cmp esi, 0xffffffff
je 0x180a6159
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180a6159
xor ecx, ecx
call fcn.18009e81
push 0x20
push esi
push dword [ebx]
call fcn.18149290
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.1800b4aa
test edi, edi
je 0x180a6165
mov edx, dword [edi]
mov ecx, edi
push 1
call dword [edx]
lea ecx, [ebp - 0x38]
call fcn.1800b4aa
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14