Function at 0x180a4840
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.1800b3c0
call fcn.180a4821
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 0x180a4949
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 0x180a4a03
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 0x180a4a03
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 0x180a49fc
jb 0x180a48e1
cmp eax, 0x40000000
ja 0x180a49fc
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 0x180a4a03
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x180a491f
push ecx
push dword [ebp - 0x38]
lea eax, [edi + 8]
push eax
call fcn.1811e6eb
mov ecx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [ebp - 0x18]
cmp ecx, eax
je 0x180a48ed
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 0x180a4880
push ecx
push 0x20
lea ecx, [ebp - 0x2c]
call fcn.180a4a51
lea eax, [edi + 8]
push eax
call fcn.1811e740
mov esi, dword [ebp - 0x2c]
pop ecx
push 0x20
push eax
push esi
call fcn.18147aa0
mov eax, dword [ebp + 0x14]
add esp, 0xc
push 0x20
test eax, eax
je 0x180a4a18
push esi
push dword [eax]
call fcn.1814806c
add esp, 0xc
test eax, eax
je 0x180a4a2c
call fcn.18004001
push eax
lea ecx, [ebp + 8]
call fcn.180070cc
push ecx
lea eax, [ebp + 8]
mov ecx, esi
push eax
push 0x20
pop edx
call fcn.1800ce02
mov esi, dword [ebp + 8]
pop ecx
pop ecx
movzx ecx, byte [0x181d398a]
neg ecx
sbb ecx, ecx
and ecx, 0x181d2b40
je 0x180a49ed
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.18005da9
push esi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
push str._actual_hash_S_
push eax
call fcn.180041a3
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.18004665
mov ebx, 0x80040204
jmp 0x180a4a2c
mov ebx, 0x80040205
jmp 0x180a4a0a
call fcn.18013c92
mov ebx, eax
cmp esi, 0xffffffff
je 0x180a4a34
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180a4a34
xor ecx, ecx
call fcn.18009dd3
push 0x20
push esi
push dword [ebx]
call fcn.18147aa0
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.1800b3fc
test edi, edi
je 0x180a4a40
mov edx, dword [edi]
mov ecx, edi
push 1
call dword [edx]
lea ecx, [ebp - 0x38]
call fcn.1800b3fc
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14