Function at 0xa50800
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.00a3e4b0
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov esi, dword [esi + eax*4]
lea ebx, [ecx + 3]
and ebx, 0xfffffffc
mov dword [esp + 0x8c], ebx
lea edx, [ebx + 4]
cmp edx, 0xc
jae 0xa5084a
mov dword [esp + 0x8c], 8
mov ebx, dword [esp + 0x8c]
mov edi, dword [esi + 0x38]
xor ebp, ebp
test edi, edi
mov dword [esp + 0x10], 0xffffffff
je 0xa50893
lea ecx, [ebx + 4]
mov eax, dword [edi + esi]
lea edx, [eax + 0xc]
cmp edx, ecx
je 0xa509b1
lea edx, [ebx + 0x14]
cmp eax, edx
jb 0xa50883
mov edx, dword [esp + 0x10]
sub eax, ebx
cmp eax, edx
jae 0xa50883
mov ebp, edi
mov dword [esp + 0x10], eax
mov edi, dword [edi + esi + 4]
test edi, edi
jne 0xa5085e
test ebp, ebp
jne 0xa509f3
mov eax, dword [0xaf53e4]
mov edi, dword [eax + 0x54]
inc edi
mov dword [eax + 0x54], edi
mov eax, dword [0xaf53e4]
mov ecx, dword [eax + 0x54]
add eax, 0x14
push ecx
push eax
lea eax, [esp + 0x28]
push str._s__d
push eax
mov dword [0xaf53e0], ecx
call fcn.00a7feb4
mov ebp, dword [esi + 0x14]
lea eax, [ebx + ebx + 0xc]
add esp, 0x10
cmp eax, 0x8000
mov dword [esp + 0x10], 0x8000
jbe 0xa508e8
mov ecx, dword [esp + 0x10]
add ecx, ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jb 0xa508da
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea eax, [edx + ebp]
mov edx, dword [0xaf53b8]
push eax
push 0
push 4
push 0
push edx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
jne 0xa50928
lea eax, [esp + 0x20]
push eax
push str.Unable_to_create_virtual_registry_memory_object
call fcn.00a504a0
add esp, 8
push 0
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x38]
test eax, eax
je 0xa50956
mov dword [eax + ebx + 8], ebp
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x38]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
add ecx, 0xfffffff4
mov dword [ebx + ebp + 4], eax
mov dword [ebx + ebp + 8], 0
mov dword [ebx + ebp], ecx
mov dword [ebx + 0x38], ebp
mov dword [ebx + 0x14], edx
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [0xaf53a0], ebx
mov dword [esi], ebx
mov eax, dword [0xaf53e8]
test eax, eax
je 0xa5099e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov dword [0xaf53e8], ecx
jmp 0xa50812
mov eax, dword [edi + esi + 8]
test eax, eax
je 0xa509c3
mov edx, dword [edi + esi + 4]
mov dword [eax + esi + 4], edx
jmp 0xa509ca
mov eax, dword [edi + esi + 4]
mov dword [esi + 0x38], eax
mov eax, dword [edi + esi + 4]
test eax, eax
je 0xa509da
mov ecx, dword [edi + esi + 8]
mov dword [eax + esi + 8], ecx
mov ecx, dword [esp + 0x14]
mov dword [edi + esi], ebx
call fcn.00a3e4b0
lea eax, [edi + 4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8
mov edi, dword [esi + ebp]
mov ecx, dword [esi + ebp + 8]
mov edx, dword [esi + ebp + 4]
sub edi, ebx
lea eax, [ebx + ebp + 4]
sub edi, 4
test ecx, ecx
mov dword [eax + esi], edi
mov dword [eax + esi + 4], edx
mov dword [eax + esi + 8], ecx
je 0xa50a1c
mov dword [ecx + esi + 4], eax
jmp 0xa50a1f
mov dword [esi + 0x38], eax
test edx, edx
je 0xa50a27
mov dword [edx + esi + 8], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + ebp], ebx
call fcn.00a3e4b0
pop edi
lea eax, [ebp + 4]
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8