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

Disassembly:
push 0x38
mov eax, 0x6103e39a
call fcn.6102aaf6
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 0x6101761b
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 0x6101761b
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 0x610174dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x6101761b
lea eax, [ebp - 0x40]
push eax
push edi
call esi
mov dword [ebp - 0x44], eax
cmp eax, 0xffffffff
jne 0x610174fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x6101761b
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x44]
jne 0x6101761b
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x40]
jne 0x6101761b
mov edx, ecx
or edx, eax
je 0x61017614
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 0x6101761b
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 0x6101761b
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
cmp ecx, ebx
ja 0x61017564
cmp edx, 0x1000000
jbe 0x6101756d
mov dword [ebp + 0xc], 0x1000000
jmp 0x61017570
mov dword [ebp + 0xc], edx
mov dword [ebp - 0x3c], ebx
and dword [ebp - 0x38], ebx
jmp 0x6101757b
mov edx, dword [ebp - 0x34]
mov eax, edx
sub eax, ebx
sbb ecx, dword [ebp - 0x38]
xor esi, esi
cmp ecx, esi
ja 0x61017596
jb 0x6101758f
cmp eax, dword [ebp + 0xc]
jae 0x61017596
sub edx, ebx
mov dword [ebp + 8], edx
jmp 0x6101759c
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 0x6101761b
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 0x6101761b
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x6101761b
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 0x61017578
ja 0x61017614
mov edx, dword [ebp - 0x34]
cmp ebx, edx
jb 0x6101757b
mov dword [ebp - 0x2c], 1
or dword [ebp - 4], 0xffffffff
xor edi, edi
cmp dword [ebp - 0x14], edi
je 0x6101762f
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x18], edi
je 0x6101763d
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 0x6101764d
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x24], edi
je 0x61017657
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x1c], 0xffffffff
je 0x61017662
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x28], 0xffffffff
je 0x6101766d
push dword [ebp - 0x28]
call esi
mov eax, dword [ebp - 0x2c]
call fcn.6102abaa
ret 8