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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea eax, [ebp - 5]
xor ebx, ebx
push eax
push 0x20000
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.1800e354
call fcn.1805a2ef
mov edi, eax
mov dword [ebp - 0x18], 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 0x1805a485
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 0x1805a540
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push eax
push esi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1805a540
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
adc ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp ecx, ebx
ja 0x1805a539
jb 0x1805a41d
cmp eax, 0x20000000
ja 0x1805a539
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], eax
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1805a540
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x1805a45b
push ecx
push dword [ebp - 0x44]
lea eax, [edi + 8]
push eax
call fcn.18093a59
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
je 0x1805a429
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
inc edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
cmp edx, eax
jb 0x1805a3bc
push ecx
push 0x20
pop esi
push esi
lea ecx, [ebp - 0x38]
call fcn.1805a63a
lea eax, [edi + 8]
push eax
call fcn.18093aae
pop ecx
push esi
push eax
push dword [ebp - 0x38]
call fcn.180c7520
mov eax, dword [ebp + 0x14]
add esp, 0xc
push esi
test eax, eax
je 0x1805a555
push dword [ebp - 0x38]
push dword [eax]
call fcn.180c7dc8
add esp, 0xc
test eax, eax
je 0x1805a56a
call fcn.18006a78
push eax
lea ecx, [ebp + 8]
call fcn.18007187
mov ecx, dword [ebp - 0x38]
lea eax, [ebp + 8]
xor ebx, ebx
mov edx, esi
inc ebx
push ebx
push eax
call fcn.1800fc08
mov esi, dword [ebp + 8]
pop ecx
pop ecx
movzx ecx, byte [0x1827e6e4]
neg ecx
sbb ecx, ecx
and ecx, 0x1827e000
je 0x1805a52a
push 9
pop eax
push ebx
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
call fcn.18008c56
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push str._actual_hash_S_
push eax
call fcn.18006ca0
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.18006a60
mov ebx, 0x80040204
jmp 0x1805a56a
mov ebx, 0x80004005
jmp 0x1805a547
call fcn.18016093
mov ebx, eax
cmp esi, 0xffffffff
je 0x1805a572
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1805a572
xor ecx, ecx
call fcn.1800cd0d
push esi
push dword [ebp - 0x38]
push dword [ebx]
call fcn.180c7520
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.1800e398
test edi, edi
je 0x1805a57e
mov edx, dword [edi]
mov ecx, edi
push 1
call dword [edx]
lea ecx, [ebp - 0x44]
call fcn.1800e398
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14