Function at 0x180633ce
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 - 0x44]
push 0x100000
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.1800f08f
call fcn.1806334a
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 0x180634d2
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 0x1806358d
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 0x1806358d
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 0x18063586
jb 0x1806346f
cmp eax, 0x40000000
ja 0x18063586
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], eax
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1806357d
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x180634a8
mov eax, dword [esi]
push ecx
push dword [ebp - 0x44]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
je 0x1806347b
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 0x1806340e
push ecx
push 0x20
pop edi
push edi
lea ecx, [ebp - 0x38]
call fcn.180636c1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push edi
push eax
push dword [ebp - 0x38]
call fcn.18161b60
mov eax, dword [ebp + 0x14]
add esp, 0xc
push edi
test eax, eax
je 0x180635a2
push dword [ebp - 0x38]
push dword [eax]
call fcn.1816240f
add esp, 0xc
test eax, eax
je 0x180635b7
lea ecx, [ebp + 8]
call fcn.18009c8e
mov ecx, dword [ebp - 0x38]
lea eax, [ebp + 8]
xor ebx, ebx
mov edx, edi
inc ebx
push ebx
push eax
call fcn.18010a3e
mov edi, dword [ebp + 8]
pop ecx
pop ecx
movzx ecx, byte [0x18217983]
neg ecx
sbb ecx, ecx
and ecx, 0x18217880
je 0x1806356e
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.18008988
push edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push str._actual_hash_S_
push eax
call fcn.18006aa4
add esp, 0xc
lea ecx, [edi - 0x10]
call fcn.1800687d
mov ebx, 0x80040204
jmp 0x180635b7
call fcn.18017850
mov ebx, eax
jmp 0x18063599
mov ebx, 0x80040205
jmp 0x18063594
call fcn.18017850
mov ebx, eax
cmp edi, 0xffffffff
je 0x180635bf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180635bf
xor ecx, ecx
call fcn.1800d9d9
push edi
push dword [ebp - 0x38]
push dword [ebx]
call fcn.18161b60
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.1800f11b
test esi, esi
je 0x180635cb
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
lea ecx, [ebp - 0x44]
call fcn.1800f11b
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14