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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
push esi
mov esi, ecx
mov eax, dword [ebx + 0x184]
cmp eax, dword [ebx + 0x180]
jb 0x10135386
push 2
pop esi
cmp dword [ebx + 0x824], esi
jge 0x1013537f
mov dword [ebx + 0x824], esi
mov dword [ebx + 0x828], esi
mov dword [ebx + 0x820], 0x13
xor eax, eax
jmp 0x1013558f
push edi
mov edi, dword [ebx + 0xc8]
lea edx, [ebp - 4]
push ebx
push 0xa
pop ecx
call fcn.10139533
test eax, eax
je 0x1013558c
mov eax, dword [ebp - 4]
mov ecx, esi
shl eax, 4
add eax, edi
push ebx
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.10135823
imul edx, dword [ebx + 0x184], 0x18
mov ecx, dword [ebx + 0x17c]
mov dword [edx + ecx + 0xc], eax
imul eax, dword [ebx + 0x184], 0x18
mov ecx, dword [ebx + 0x17c]
cmp dword [eax + ecx + 0xc], 0xffffffff
je 0x1013558c
push 0
xor edx, edx
push 0x100080
inc edx
mov dword [eax + ecx + 0x10], edx
imul ecx, dword [ebx + 0x184], 0x18
mov eax, dword [ebx + 0x17c]
push 3
push 0
push edx
add ecx, 8
push SysReAllocString
add eax, ecx
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push 2
pop esi
cmp edi, 0xffffffff
je 0x10135476
cmp dword [ebp - 4], 0
je 0x10135436
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x1013546c
xor eax, eax
push eax
push eax
push eax
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
test eax, eax
je 0x1013546c
xor ecx, ecx
push ecx
push ecx
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
test edx, edx
jne 0x1013547b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
xor edx, edx
mov dword [ebp - 4], edx
imul ecx, dword [ebx + 0x184], 0x18
mov eax, dword [ebx + 0x17c]
mov dword [ecx + eax + 0x14], edx
imul eax, dword [ebx + 0x184], 0x18
mov ecx, dword [ebx + 0x17c]
cmp dword [eax + ecx + 0x14], 0
je 0x1013557d
test edx, edx
je 0x1013557d
push dword [eax + ecx + 8]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
imul edx, dword [ebx + 0x184], 0x18
mov ecx, dword [ebx + 0x17c]
mov dword [edx + ecx], eax
imul eax, dword [ebx + 0x184], 0x18
mov ecx, dword [ebx + 0x17c]
mov edx, dword [eax + ecx]
test edx, edx
jne 0x10135505
push 3
pop edx
mov dword [ebx + 0x824], edx
mov edx, edi
mov dword [ebx + 0x828], esi
mov dword [ebx + 0x820], 0x13
mov ecx, dword [eax + ecx + 0x14]
call fcn.1010bf24
jmp 0x1013558c
push dword [eax + ecx + 8]
mov eax, dword [ebp - 4]
push eax
push edx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0xc]
add esp, 0xc
add eax, 8
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
imul eax, dword [ebx + 0x184], 0x18
mov edx, edi
mov ecx, dword [ebx + 0x17c]
mov ecx, dword [eax + ecx + 0x14]
call fcn.1010bf24
mov esi, dword [ebx + 0x184]
mov edi, dword [ebx + 0x17c]
push dword [ebx + 0x268]
imul ecx, esi, 0x18
mov edx, dword [ecx + edi + 8]
mov ecx, dword [ecx + edi]
call fcn.1010bd2c
lea ecx, [esi + 1]
mov dword [ebx + 0x268], eax
mov dword [ebx + 0x184], ecx
xor eax, eax
imul ecx, ecx, 0x18
and dword [ecx + edi - 0x14], 0
inc eax
jmp 0x1013558e
push 3
pop edx
mov dword [ebx + 0x824], edx
mov dword [ebx + 0x828], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret