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

Disassembly:
push 0x38
mov eax, 0x1055dc3
call fcn.01021ef1
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 0x103580a
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 0x103580a
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 0x10356cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x103580a
lea eax, [ebp - 0x40]
push eax
push edi
call esi
mov dword [ebp - 0x44], eax
cmp eax, 0xffffffff
jne 0x10356e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x103580a
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x44]
jne 0x103580a
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x40]
jne 0x103580a
mov edx, ecx
or edx, eax
je 0x1035803
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 0x103580a
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 0x103580a
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
cmp ecx, ebx
ja 0x1035753
cmp edx, 0x1000000
jbe 0x103575c
mov dword [ebp + 0xc], 0x1000000
jmp 0x103575f
mov dword [ebp + 0xc], edx
mov dword [ebp - 0x3c], ebx
and dword [ebp - 0x38], ebx
jmp 0x103576a
mov edx, dword [ebp - 0x34]
mov eax, edx
sub eax, ebx
sbb ecx, dword [ebp - 0x38]
xor esi, esi
cmp ecx, esi
ja 0x1035785
jb 0x103577e
cmp eax, dword [ebp + 0xc]
jae 0x1035785
sub edx, ebx
mov dword [ebp + 8], edx
jmp 0x103578b
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 0x103580a
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 0x103580a
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x103580a
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 0x1035767
ja 0x1035803
mov edx, dword [ebp - 0x34]
cmp ebx, edx
jb 0x103576a
mov dword [ebp - 0x2c], 1
or dword [ebp - 4], 0xffffffff
xor edi, edi
cmp dword [ebp - 0x14], edi
je 0x103581e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x18], edi
je 0x103582c
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 0x103583c
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x24], edi
je 0x1035846
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x1c], 0xffffffff
je 0x1035851
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x28], 0xffffffff
je 0x103585c
push dword [ebp - 0x28]
call esi
mov eax, dword [ebp - 0x2c]
call fcn.01021fa5
ret 8