Function at 0x180a27c5
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.1800b39d
call fcn.180a27a6
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 0x180a28ce
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 0x180a2988
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 0x180a2988
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 0x180a2981
jb 0x180a2866
cmp eax, 0x40000000
ja 0x180a2981
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 0x180a2988
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x180a28a4
push ecx
push dword [ebp - 0x38]
lea eax, [edi + 8]
push eax
call fcn.1811c485
mov ecx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [ebp - 0x18]
cmp ecx, eax
je 0x180a2872
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 0x180a2805
push ecx
push 0x20
lea ecx, [ebp - 0x2c]
call fcn.180a29d6
lea eax, [edi + 8]
push eax
call fcn.1811c4da
mov esi, dword [ebp - 0x2c]
pop ecx
push 0x20
push eax
push esi
call fcn.18144bc0
mov eax, dword [ebp + 0x14]
add esp, 0xc
push 0x20
test eax, eax
je 0x180a299d
push esi
push dword [eax]
call fcn.1814518a
add esp, 0xc
test eax, eax
je 0x180a29b1
call fcn.18003fd3
push eax
lea ecx, [ebp + 8]
call fcn.18006df7
push ecx
lea eax, [ebp + 8]
mov ecx, esi
push eax
push 0x20
pop edx
call fcn.1800cddf
mov esi, dword [ebp + 8]
pop ecx
pop ecx
movzx ecx, byte [0x181cf83a]
neg ecx
sbb ecx, ecx
and ecx, 0x181cea00
je 0x180a2972
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.18005bab
push esi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
push str._actual_hash_S_
push eax
call fcn.18004175
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.18004637
mov ebx, 0x80040204
jmp 0x180a29b1
mov ebx, 0x80040205
jmp 0x180a298f
call fcn.18013c6a
mov ebx, eax
cmp esi, 0xffffffff
je 0x180a29b9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180a29b9
xor ecx, ecx
call fcn.18009bee
push 0x20
push esi
push dword [ebx]
call fcn.18144bc0
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.1800b3d9
test edi, edi
je 0x180a29c5
mov edx, dword [edi]
mov ecx, edi
push 1
call dword [edx]
lea ecx, [ebp - 0x38]
call fcn.1800b3d9
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14