Function at 0xa04b30
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0xa8a5dc
push eax
mov dword fs:[0], esp
sub esp, 0x630
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
jne 0xa04c3e
lea eax, [esp + 0x220]
push str.service_mutex
push eax
call fcn.00a04f20
add esp, 8
mov ecx, dword [0xa918f4]
mov dword [esp + 0x648], ebx
push ecx
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00a151b0
lea ecx, [esp + 0x220]
mov byte [esp + 0x648], 2
call fcn.00a155e0
mov eax, dword [esp + 0x650]
lea ecx, [esp + 0x10]
cmp eax, ebx
je 0xa04bd0
call fcn.00a15640
push eax
push ebx
push ebx
call fcn.00a23f70
mov dword [esi + 8], eax
mov edi, str.Create
jmp 0xa04be9
call fcn.00a15640
push eax
push ebx
push 0x100001
call fcn.00a24040
mov dword [esi + 8], eax
mov edi, str.Open
cmp dword [esi + 8], ebx
jne 0xa04c2a
mov esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push str._Unable_to__sMutex_mutex__ls__error__d_n
call fcn.009fe320
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x10]
mov dword [esp + 0x648], 0xffffffff
call fcn.00a155e0
xor eax, eax
jmp 0xa04e59
lea ecx, [esp + 0x10]
mov dword [esp + 0x648], 0xffffffff
call fcn.00a155e0
cmp dword [esi + 4], ebx
jne 0xa04e4d
push 8
call fcn.009ef3b0
add esp, 4
cmp eax, ebx
mov dword [esi + 4], eax
je 0xa04e38
mov edi, dword [esp + 0x650]
push str.service0
cmp edi, ebx
je 0xa04cb4
lea edx, [esp + 0x224]
push edx
call fcn.00a04f20
add esp, 8
mov eax, dword [eax + 8]
mov dword [esp + 0x648], 3
push eax
push 0x10000
push ebx
push 4
push ebx
push 0xffffffffffffffff
call fcn.00a22c00
mov ecx, dword [esi + 4]
mov dword [esp + 0x648], 0xffffffff
mov dword [ecx], eax
lea ecx, [esp + 0x220]
jmp 0xa04cf2
lea edx, [esp + 0x434]
push edx
call fcn.00a04f20
add esp, 8
mov eax, dword [eax + 8]
mov dword [esp + 0x648], 4
push eax
push ebx
push 6
call fcn.00a22d00
mov ecx, dword [esi + 4]
mov dword [esp + 0x648], 0xffffffff
mov dword [ecx], eax
lea ecx, [esp + 0x430]
call fcn.00a155e0
mov edx, dword [esi + 4]
mov eax, dword [edx]
cmp eax, ebx
jne 0xa04d2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Unable_to_create_service_shared_memory_block__error__d_n
call fcn.009fe320
mov eax, dword [esi + 4]
push eax
call fcn.009ef440
add esp, 0xc
mov dword [esi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0xa04e59
push 0x10000
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esi + 4]
mov dword [ecx + 4], eax
mov edx, dword [esi + 4]
cmp dword [edx + 4], ebx
jne 0xa04d65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Unable_to_map_service_shared_memory_block__error__d_n
call fcn.009fe320
add esp, 8
jmp 0xa04e1d
mov eax, dword [esi + 8]
push 0xffffffffffffffff
push eax
mov dword [esi], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 4]
cmp edi, ebx
mov eax, dword [ecx + 4]
je 0xa04da0
cmp dword [eax], ebx
jne 0xa04da0
mov dword [eax], 0x43535354
mov dword [eax + 4], 0x10000
mov dword [eax + 8], 0x10
mov dword [eax + 0xc], 1
cmp dword [eax], 0x43535354
je 0xa04df2
push str._Invalid_magic_number_in_service_shared_memory_block_n
call fcn.009fe320
mov edx, dword [esi + 8]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esi + 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 4]
push ecx
call fcn.009ef440
add esp, 4
mov dword [esi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0xa04e59
mov edx, dword [eax + 0xc]
mov eax, dword [esi]
cmp edx, eax
je 0xa04e43
mov ecx, esi
call fcn.00a05090
test eax, eax
jne 0xa04e43
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 4]
push edx
call fcn.009ef440
add esp, 4
mov dword [esi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0xa04e59
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [esp + 0x640]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x63c
ret 4