Function at 0x18093dd6
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.18009f1c
call fcn.18093db7
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 0x18093ee1
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 0x18093f9b
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 0x18093f9b
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 0x18093f94
jb 0x18093e77
cmp eax, 0x20000000
ja 0x18093f94
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 0x18093f9b
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x18093eb2
push ecx
push dword [ebp - 0x30]
lea eax, [esi + 8]
push eax
call fcn.18103a55
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 0x18093e7d
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 0x18093e16
push ecx
push 0x20
lea ecx, [ebp - 0x24]
call fcn.18093fe9
lea eax, [esi + 8]
push eax
call fcn.18103aaa
mov edi, dword [ebp - 0x24]
pop ecx
push 0x20
push eax
push edi
call fcn.1812c230
mov eax, dword [ebp + 0x14]
add esp, 0xc
push 0x20
test eax, eax
je 0x18093fb0
push edi
push dword [eax]
call fcn.1812c7fa
add esp, 0xc
test eax, eax
je 0x18093fc4
call fcn.18002e11
push eax
lea ecx, [ebp + 8]
call fcn.18005bd3
push ecx
lea eax, [ebp + 8]
mov ecx, edi
push eax
push 0x20
pop edx
call fcn.1800b96d
mov edi, dword [ebp + 8]
pop ecx
pop ecx
movzx ecx, byte [0x181a7c1c]
neg ecx
sbb ecx, ecx
and ecx, 0x181a75e0
je 0x18093f85
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.180049c7
push edi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push str._actual_hash_S_
push eax
call fcn.18002fb3
add esp, 0xc
lea ecx, [edi - 0x10]
call fcn.18003476
mov ebx, 0x80040204
jmp 0x18093fc4
mov ebx, 0x80004005
jmp 0x18093fa2
call fcn.18011478
mov ebx, eax
cmp edi, 0xffffffff
je 0x18093fcc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18093fcc
xor ecx, ecx
call fcn.1800873b
push 0x20
push edi
push dword [ebx]
call fcn.1812c230
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.18009ef9
test esi, esi
je 0x18093fd8
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
lea ecx, [ebp - 0x30]
call fcn.18009ef9
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14