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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push ecx
xor ebx, ebx
lea ecx, [ebp - 0x30]
push 0x100000
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.1800b39f
call fcn.1809e0d1
mov esi, 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 0x1809e1fb
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 edi, eax
cmp edi, 0xffffffff
je 0x1809e2b5
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push eax
push edi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1809e2b5
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
adc ecx, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
cmp ecx, ebx
ja 0x1809e2ae
jb 0x1809e191
cmp eax, 0x40000000
ja 0x1809e2ae
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 8]
push ebx
push ecx
sub edx, eax
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1809e2b5
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1809e1cc
push ecx
push dword [ebp - 0x30]
lea eax, [esi + 8]
push eax
call fcn.181178c8
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp - 0x2c]
mov eax, edx
sub eax, dword [ebp - 0x30]
cmp ecx, eax
je 0x1809e197
push edi
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 0x1809e130
push ecx
push 0x20
lea ecx, [ebp - 0x24]
call fcn.1809e303
lea eax, [esi + 8]
push eax
call fcn.1811791d
mov edi, dword [ebp - 0x24]
pop ecx
push 0x20
push eax
push edi
call fcn.1813f840
mov eax, dword [ebp + 0x14]
add esp, 0xc
push 0x20
test eax, eax
je 0x1809e2ca
push edi
push dword [eax]
call fcn.1813fe0a
add esp, 0xc
test eax, eax
je 0x1809e2de
call fcn.18003f31
push eax
lea ecx, [ebp + 8]
call fcn.18006dc8
push ecx
lea eax, [ebp + 8]
mov ecx, edi
push eax
push 0x20
pop edx
call fcn.1800ce12
mov edi, dword [ebp + 8]
pop ecx
pop ecx
movzx ecx, byte [0x181c8652]
neg ecx
sbb ecx, ecx
and ecx, 0x181c7840
je 0x1809e29f
push 9
pop eax
xor edx, edx
mov dword [ebp - 0x40], ecx
inc edx
mov dword [ebp - 0x3c], eax
push edx
push eax
mov dword [ebp - 0x38], edx
call fcn.18005b0c
push edi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push str._actual_hash_S_
push eax
call fcn.180040d3
add esp, 0xc
lea ecx, [edi - 0x10]
call fcn.18004595
mov ebx, 0x80040204
jmp 0x1809e2de
mov ebx, 0x80040205
jmp 0x1809e2bc
call fcn.18012e6f
mov ebx, eax
cmp edi, 0xffffffff
je 0x1809e2e6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1809e2e6
xor ecx, ecx
call fcn.18009bbe
push 0x20
push edi
push dword [ebx]
call fcn.1813f840
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.1800b37c
test esi, esi
je 0x1809e2f2
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
lea ecx, [ebp - 0x30]
call fcn.1800b37c
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14