Function at 0x180a51e2
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.1800b401
call fcn.180a51c3
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 0x180a52eb
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 0x180a53a5
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 0x180a53a5
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 0x180a539e
jb 0x180a5283
cmp eax, 0x40000000
ja 0x180a539e
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 0x180a53a5
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x180a52c1
push ecx
push dword [ebp - 0x38]
lea eax, [edi + 8]
push eax
call fcn.1811f0ad
mov ecx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [ebp - 0x18]
cmp ecx, eax
je 0x180a528f
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 0x180a5222
push ecx
push 0x20
lea ecx, [ebp - 0x2c]
call fcn.180a53f3
lea eax, [edi + 8]
push eax
call fcn.1811f102
mov esi, dword [ebp - 0x2c]
pop ecx
push 0x20
push eax
push esi
call fcn.18148460
mov eax, dword [ebp + 0x14]
add esp, 0xc
push 0x20
test eax, eax
je 0x180a53ba
push esi
push dword [eax]
call fcn.18148a2a
add esp, 0xc
test eax, eax
je 0x180a53ce
call fcn.18004041
push eax
lea ecx, [ebp + 8]
call fcn.1800710c
push ecx
lea eax, [ebp + 8]
mov ecx, esi
push eax
push 0x20
pop edx
call fcn.1800ce43
mov esi, dword [ebp + 8]
pop ecx
pop ecx
movzx ecx, byte [0x181d59e6]
neg ecx
sbb ecx, ecx
and ecx, 0x181d4bb0
je 0x180a538f
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.18005de9
push esi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
push str._actual_hash_S_
push eax
call fcn.180041e3
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.180046a5
mov ebx, 0x80040204
jmp 0x180a53ce
mov ebx, 0x80040205
jmp 0x180a53ac
call fcn.18013db1
mov ebx, eax
cmp esi, 0xffffffff
je 0x180a53d6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180a53d6
xor ecx, ecx
call fcn.18009e11
push 0x20
push esi
push dword [ebx]
call fcn.18148460
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.1800b43d
test edi, edi
je 0x180a53e2
mov edx, dword [edi]
mov ecx, edi
push 1
call dword [edx]
lea ecx, [ebp - 0x38]
call fcn.1800b43d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14