Function at 0xa05090
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0xa8a656
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x424
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], edx
mov esi, dword [edx + 0xc]
cmp eax, esi
jbe 0xa05118
cmp esi, eax
jae 0xa050f4
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 4]
mov ecx, dword [eax + esi*8 + 4]
push ecx
call edi
mov edx, dword [ebp + 4]
mov eax, dword [edx + esi*8]
push eax
call ebx
mov eax, dword [ebp]
inc esi
cmp esi, eax
jb 0xa050d5
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0xc]
mov dword [ebp], ecx
mov eax, 1
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x430
ret
jae 0xa050fa
lea edx, [esi*8]
push edx
push ecx
call fcn.009ef400
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0xa0513d
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xa050ff
mov ecx, dword [ebp]
mov esi, dword [ebp + 4]
shl ecx, 3
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
push ecx
call fcn.009ef440
mov edi, dword [esp + 0x14]
mov edx, dword [ebp]
mov dword [ebp + 4], ebx
add esp, 4
cmp edx, dword [edi + 0xc]
jae 0xa050fa
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
or ebx, 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00a155c0
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push eax
push str.service_u
push ecx
mov dword [esp + 0x448], 0
call fcn.00a16060
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x230]
push edx
push eax
call fcn.00a04f20
add esp, 0x14
mov eax, dword [eax + 8]
mov byte [esp + 0x43c], 1
push eax
push 0
push 6
call fcn.00a22d00
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov byte [esp + 0x43c], 0
mov dword [edx + ecx*8], eax
lea ecx, [esp + 0x224]
call fcn.00a155e0
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + eax*8]
test eax, eax
je 0xa0524a
push 0x10000
push 0
push 0
push 6
push eax
call esi
mov edx, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [ecx + edx*8 + 4], eax
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov ecx, dword [edx + eax*8 + 4]
test ecx, ecx
je 0xa05264
cmp dword [ecx], 0x43535354
jne 0xa05288
inc eax
lea ecx, [esp + 0x14]
mov dword [ebp], eax
mov dword [esp + 0x43c], ebx
call fcn.00a155e0
mov eax, dword [ebp]
mov ecx, dword [edi + 0xc]
cmp eax, ecx
jb 0xa0517a
jmp 0xa050fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp]
push eax
push ecx
push str._Unable_to_create_service_shared_memory_block__d__error__d_n
call fcn.009fe320
add esp, 0xc
jmp 0xa052ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp]
push eax
push edx
push str._Unable_to_map_service_shared_memory_block__d__error__d_n
call fcn.009fe320
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
add esp, 0xc
mov edx, dword [ecx + eax*8]
push edx
jmp 0xa052b4
mov eax, dword [ebp]
push eax
push str._Invalid_magic_number_in_service_shared_memory_block__d_n
call fcn.009fe320
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
add esp, 8
mov eax, dword [edx + ecx*8 + 4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov eax, dword [edx + ecx*8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0x43c], ebx
call fcn.00a155e0
xor eax, eax
jmp 0xa050ff