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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x101cc3c
mov edi, 0x80070057
jmp 0x101ce93
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 0x10]
jbe 0x101cc83
mov edi, 0x8007000e
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101ce8a
test byte [eax + 0x1c], 1
je 0x101ce8a
push ebx
push dword [ebp + 8]
push 0x1003dec
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015773
jmp 0x101ce8a
push edi
push edi
push edi
push 2
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x101cce2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x101ccad
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101ce7b
test byte [eax + 0x1c], 1
je 0x101ce7b
push edi
push ebx
push 0x1003dec
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004f4d
jmp 0x101ce7b
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x101cd30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x101cd09
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101ce6c
test byte [eax + 0x1c], 1
je 0x101ce6c
push edi
push ebx
push 0x1003dec
push 0x31
jmp 0x101cd84
cmp dword [eax], 0x4d51534d
mov ebx, dword [eax + 0x94]
jne 0x101ce40
cmp ebx, edi
je 0x101ce40
push 1
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 8]
call fcn.0101c95a
mov edi, eax
test edi, edi
jge 0x101cd94
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101ce6c
test byte [eax + 0x1c], 1
je 0x101ce6c
push edi
push dword [ebp + 8]
push 0x1003dec
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004f4d
jmp 0x101ce6c
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x94]
cmp ebx, eax
jbe 0x101cde7
mov ecx, ebx
sub ecx, eax
push ecx
mov ecx, esi
call fcn.0101b495
test eax, eax
jne 0x101cde7
mov edi, 0x8007000e
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101ce6c
test byte [eax + 0x1c], 1
je 0x101ce6c
push 0x1003dec
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
jmp 0x101ce6c
push ebx
push dword [ebp - 4]
push dword [esi + 4]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, esi
call fcn.0101aab4
test eax, eax
jne 0x101ce32
mov edi, 0x80070057
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101ce6c
test byte [eax + 0x1c], 1
je 0x101ce6c
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1003dec
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015773
jmp 0x101ce6c
mov eax, dword [esi + 4]
mov dword [eax + 0x7c], 1
xor edi, edi
jmp 0x101ce6c
mov edi, 0x80070057
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101ce6c
test byte [eax + 0x1c], 1
je 0x101ce6c
push dword [ebp + 0xc]
push 0x1003dec
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004ee0
cmp dword [ebp - 4], 0
je 0x101ce7b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 8], 0
je 0x101ce8a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc