Function at 0x1808c1e7
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 0x20000
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.18009edb
call fcn.1808c1c8
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 0x1808c2f2
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 0x1808c3ac
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 0x1808c3ac
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 0x1808c3a5
jb 0x1808c288
cmp eax, 0x20000000
ja 0x1808c3a5
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 0x1808c3ac
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1808c2c3
push ecx
push dword [ebp - 0x30]
lea eax, [esi + 8]
push eax
call fcn.180fb8d1
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 0x1808c28e
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 0x1808c227
push ecx
push 0x20
lea ecx, [ebp - 0x24]
call fcn.1808c3fa
lea eax, [esi + 8]
push eax
call fcn.180fb926
mov edi, dword [ebp - 0x24]
pop ecx
push 0x20
push eax
push edi
call fcn.18124020
mov eax, dword [ebp + 0x14]
add esp, 0xc
push 0x20
test eax, eax
je 0x1808c3c1
push edi
push dword [eax]
call fcn.181245ea
add esp, 0xc
test eax, eax
je 0x1808c3d5
call fcn.18002dd1
push eax
lea ecx, [ebp + 8]
call fcn.18005b92
push ecx
lea eax, [ebp + 8]
mov ecx, edi
push eax
push 0x20
pop edx
call fcn.1800b92c
mov edi, dword [ebp + 8]
pop ecx
pop ecx
movzx ecx, byte [0x1819d65c]
neg ecx
sbb ecx, ecx
and ecx, 0x1819d030
je 0x1808c396
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.18004986
push edi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push str._actual_hash_S_
push eax
call fcn.18002f73
add esp, 0xc
lea ecx, [edi - 0x10]
call fcn.18003435
mov ebx, 0x80040204
jmp 0x1808c3d5
mov ebx, 0x80004005
jmp 0x1808c3b3
call fcn.18011439
mov ebx, eax
cmp edi, 0xffffffff
je 0x1808c3dd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1808c3dd
xor ecx, ecx
call fcn.180086fa
push 0x20
push edi
push dword [ebx]
call fcn.18124020
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.18009eb8
test esi, esi
je 0x1808c3e9
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
lea ecx, [ebp - 0x30]
call fcn.18009eb8
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14