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

Disassembly:
push 0x38
mov eax, 0x1055972
call fcn.010220ca
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, SysReAllocString
push edi
push eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call esi
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x103554a
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 0x103554a
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 0x103540c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x103554a
lea eax, [ebp - 0x40]
push eax
push edi
call esi
mov dword [ebp - 0x44], eax
cmp eax, 0xffffffff
jne 0x1035429
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x103554a
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x44]
jne 0x103554a
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x40]
jne 0x103554a
mov edx, ecx
or edx, eax
je 0x1035543
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 0x103554a
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 0x103554a
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
cmp ecx, ebx
ja 0x1035493
cmp edx, 0x1000000
jbe 0x103549c
mov dword [ebp + 0xc], 0x1000000
jmp 0x103549f
mov dword [ebp + 0xc], edx
mov dword [ebp - 0x3c], ebx
and dword [ebp - 0x38], ebx
jmp 0x10354aa
mov edx, dword [ebp - 0x34]
mov eax, edx
sub eax, ebx
sbb ecx, dword [ebp - 0x38]
xor esi, esi
cmp ecx, esi
ja 0x10354c5
jb 0x10354be
cmp eax, dword [ebp + 0xc]
jae 0x10354c5
sub edx, ebx
mov dword [ebp + 8], edx
jmp 0x10354cb
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 0x103554a
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 0x103554a
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x103554a
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 0x10354a7
ja 0x1035543
mov edx, dword [ebp - 0x34]
cmp ebx, edx
jb 0x10354aa
mov dword [ebp - 0x2c], 1
or dword [ebp - 4], 0xffffffff
xor edi, edi
cmp dword [ebp - 0x14], edi
je 0x103555e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x18], edi
je 0x103556c
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 0x103557c
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x24], edi
je 0x1035586
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x1c], 0xffffffff
je 0x1035591
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x28], 0xffffffff
je 0x103559c
push dword [ebp - 0x28]
call esi
mov eax, dword [ebp - 0x2c]
call fcn.0102217e
ret 8