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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1057a80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xffffffff
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0
push 0
push 0x8000080
push 3
push 0
push 7
push SysReAllocString
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x1026528
jmp 0x1026743
push 0
push 0x8000080
push 3
push 0
push 7
push SysReAllocString
mov ecx, dword [ebp + 0xc]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x1026557
jmp 0x1026743
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xffffffff
jne 0x102657d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x102657d
jmp 0x1026743
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x10265a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10265a3
jmp 0x1026743
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [ebp - 0x30]
jne 0x10265b3
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x2c]
je 0x10265b8
jmp 0x1026743
mov eax, dword [ebp - 0x50]
or eax, dword [ebp - 0x4c]
jne 0x10265cc
mov dword [ebp - 0x40], 1
jmp 0x1026743
push 0
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 2
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x10265f2
jmp 0x1026743
push 0
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 2
push 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1026618
jmp 0x1026743
cmp dword [ebp - 0x4c], 0
ja 0x1026627
cmp dword [ebp - 0x50], 0x1000000
jbe 0x1026630
mov dword [ebp - 0x44], 0x1000000
jmp 0x1026636
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x4c]
sbb eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x44]
xor esi, esi
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], esi
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x60]
ja 0x1026684
jb 0x1026673
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x64]
jae 0x1026684
mov ecx, dword [ebp - 0x50]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x4c]
sbb edx, dword [ebp - 0x14]
mov dword [ebp - 0x38], ecx
jmp 0x102668a
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 4
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10266b0
jmp 0x1026743
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 4
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10266d3
jmp 0x1026743
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.010537e0
add esp, 0xc
test eax, eax
je 0x10266ed
jmp 0x1026743
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x38]
xor eax, eax
add edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
adc ecx, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x4c]
jb 0x1026644
ja 0x102673c
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x50]
jb 0x1026644
mov dword [ebp - 0x40], 1
jmp 0x102674b
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
je 0x1026762
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x24], 0
je 0x1026772
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x54], 0
je 0x1026782
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x1026792
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], 0xffffffff
je 0x10267a2
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3c], 0xffffffff
je 0x10267b2
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8