Function at 0x101329c6
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
push edi
mov esi, ecx
mov eax, dword [ebx + 0x184]
cmp eax, dword [ebx + 0x180]
jb 0x10132a0d
push 2
pop esi
cmp dword [ebx + 0x824], esi
jge 0x10132c12
mov dword [ebx + 0x824], esi
mov dword [ebx + 0x828], esi
mov dword [ebx + 0x820], 0x13
jmp 0x10132c12
mov edi, dword [ebx + 0xc8]
lea edx, [ebp - 4]
push ebx
push 0xa
pop ecx
call fcn.10136b01
test eax, eax
je 0x10132c12
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.10132eb5
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 0x10132c12
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 0x10132afc
cmp dword [ebp - 4], 0
je 0x10132abc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x10132af2
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 0x10132af2
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 0x10132b01
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 0x10132c03
test edx, edx
je 0x10132c03
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 0x10132b8b
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.1010a14f
jmp 0x10132c12
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.1010a14f
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.10109f5b
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 0x10132c14
push 3
pop edx
mov dword [ebx + 0x824], edx
mov dword [ebx + 0x828], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret