Function at 0x10153142
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 0x10153189
push 2
pop esi
cmp dword [ebx + 0x824], esi
jge 0x10153390
mov dword [ebx + 0x824], esi
mov dword [ebx + 0x828], esi
mov dword [ebx + 0x820], 0x13
jmp 0x10153390
mov edi, dword [ebx + 0xc8]
lea edx, [ebp - 4]
push ebx
push 0xa
pop ecx
call fcn.101572c0
test eax, eax
je 0x10153390
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.10153651
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 0x10153390
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 SysReAllocStringLen
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 0x10153278
cmp dword [ebp - 4], 0
je 0x10153238
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x1015326e
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 0x1015326e
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 0x1015327d
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 0x10153381
test edx, edx
je 0x10153381
push dword [eax + ecx + 8]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
imul ecx, dword [ebx + 0x184], 0x18
mov edx, eax
mov eax, dword [ebx + 0x17c]
mov dword [ecx + eax], edx
imul eax, dword [ebx + 0x184], 0x18
mov ecx, dword [ebx + 0x17c]
mov edx, dword [eax + ecx]
test edx, edx
jne 0x10153309
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.10134c85
jmp 0x10153390
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.10134c85
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.10134a79
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 0x10153392
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