Function at 0x610178f3
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x38
mov eax, 0x6103ede3
call fcn.6102b30e
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
or dword [ebp - 0x28], 0xffffffff
or dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ecx
mov ebx, 0x8000080
push ebx
push 3
push ecx
push 7
mov edi, 0x80000000
push edi
push eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call esi
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x61017aca
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push 0
push ebx
push 3
push 0
push 7
push edi
push eax
call esi
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, 0xffffffff
je 0x61017aca
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
call esi
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x6101798c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x61017aca
lea eax, [ebp - 0x40]
push eax
push edi
call esi
mov dword [ebp - 0x44], eax
cmp eax, 0xffffffff
jne 0x610179a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x61017aca
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x44]
jne 0x61017aca
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x40]
jne 0x61017aca
mov edx, ecx
or edx, eax
je 0x61017ac3
xor ebx, ebx
push ebx
push ecx
push eax
push 2
push ebx
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
call esi
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x61017aca
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push 2
push ebx
push edi
call esi
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x61017aca
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
cmp ecx, ebx
ja 0x61017a13
cmp edx, 0x1000000
jbe 0x61017a1c
mov dword [ebp + 0xc], 0x1000000
jmp 0x61017a1f
mov dword [ebp + 0xc], edx
mov dword [ebp - 0x3c], ebx
and dword [ebp - 0x38], ebx
jmp 0x61017a2a
mov edx, dword [ebp - 0x34]
mov eax, edx
sub eax, ebx
sbb ecx, dword [ebp - 0x38]
xor esi, esi
cmp ecx, esi
ja 0x61017a45
jb 0x61017a3e
cmp eax, dword [ebp + 0xc]
jae 0x61017a45
sub edx, ebx
mov dword [ebp + 8], edx
jmp 0x61017a4b
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
push dword [ebp + 8]
push ebx
push dword [ebp - 0x38]
push 4
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
call esi
mov dword [ebp - 0x14], eax
test eax, eax
je 0x61017aca
push dword [ebp + 8]
push ebx
push dword [ebp - 0x38]
push 4
push dword [ebp - 0x24]
call esi
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x61017aca
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x61017aca
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call esi
push dword [ebp - 0x18]
call esi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
add ebx, dword [ebp + 8]
mov dword [ebp - 0x3c], ebx
adc dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x38], ecx
jb 0x61017a27
ja 0x61017ac3
mov edx, dword [ebp - 0x34]
cmp ebx, edx
jb 0x61017a2a
mov dword [ebp - 0x2c], 1
or dword [ebp - 4], 0xffffffff
xor edi, edi
cmp dword [ebp - 0x14], edi
je 0x61017ade
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x18], edi
je 0x61017aec
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], edi
je 0x61017afc
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x24], edi
je 0x61017b06
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x1c], 0xffffffff
je 0x61017b11
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x28], 0xffffffff
je 0x61017b1c
push dword [ebp - 0x28]
call esi
mov eax, dword [ebp - 0x2c]
call fcn.6102b3c2
ret 8