Function at 0x180a5f97
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 - 0x38]
push 0x100000
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.1800b46e
call fcn.180a5f78
mov edi, 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 0x180a60a0
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 0x180a615a
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push eax
push esi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180a615a
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
adc ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
cmp ecx, ebx
ja 0x180a6153
jb 0x180a6038
cmp eax, 0x40000000
ja 0x180a6153
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], eax
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180a615a
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x180a6076
push ecx
push dword [ebp - 0x38]
lea eax, [edi + 8]
push eax
call fcn.18120024
mov ecx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [ebp - 0x18]
cmp ecx, eax
je 0x180a6044
push esi
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 0x180a5fd7
push ecx
push 0x20
lea ecx, [ebp - 0x2c]
call fcn.180a61a8
lea eax, [edi + 8]
push eax
call fcn.18120079
mov esi, dword [ebp - 0x2c]
pop ecx
push 0x20
push eax
push esi
call fcn.18149380
mov eax, dword [ebp + 0x14]
add esp, 0xc
push 0x20
test eax, eax
je 0x180a616f
push esi
push dword [eax]
call fcn.1814994a
add esp, 0xc
test eax, eax
je 0x180a6183
call fcn.180040b1
push eax
lea ecx, [ebp + 8]
call fcn.1800717c
push ecx
lea eax, [ebp + 8]
mov ecx, esi
push eax
push 0x20
pop edx
call fcn.1800ceb0
mov esi, dword [ebp + 8]
pop ecx
pop ecx
movzx ecx, byte [0x181d7aa2]
neg ecx
sbb ecx, ecx
and ecx, 0x181d6c50
je 0x180a6144
push 9
pop eax
xor edx, edx
mov dword [ebp - 0x48], ecx
inc edx
mov dword [ebp - 0x44], eax
push edx
push eax
mov dword [ebp - 0x40], edx
call fcn.18005e59
push esi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
push str._actual_hash_S_
push eax
call fcn.18004253
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.18004715
mov ebx, 0x80040204
jmp 0x180a6183
mov ebx, 0x80040205
jmp 0x180a6161
call fcn.18013e1e
mov ebx, eax
cmp esi, 0xffffffff
je 0x180a618b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180a618b
xor ecx, ecx
call fcn.18009e81
push 0x20
push esi
push dword [ebx]
call fcn.18149380
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.1800b4aa
test edi, edi
je 0x180a6197
mov edx, dword [edi]
mov ecx, edi
push 1
call dword [edx]
lea ecx, [ebp - 0x38]
call fcn.1800b4aa
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14