Function at 0xa504c0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x70
mov eax, dword [0xaf53e4]
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 4], edi
je 0xa5070b
push ebx
push ebp
push esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x10]
test eax, eax
jne 0xa5051b
push ebp
push 0xaf53ec
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea esi, [edi + 0x18]
test eax, eax
mov dword [esi], eax
jne 0xa5051b
push esi
push 8
push eax
push str.CLSID
push 0x80000000
call fcn.00a20e00
test eax, eax
je 0xa5051b
mov dword [esi], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0xa50527
mov edi, dword [esp + 0x10]
mov eax, dword [0xaf53e4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [0xaf53e4]
mov esi, dword [0xaf53b0]
mov edx, dword [ecx + 8]
cmp edx, esi
jne 0xa50555
mov edx, dword [ecx + 0xc]
mov esi, dword [esp + 0x14]
cmp edx, esi
je 0xa50605
cmp eax, 1
je 0xa50605
jle 0xa50527
push ecx
inc ebp
call ebx
cmp ebp, 0xc8
mov edi, eax
jle 0xa505f8
mov eax, dword [0xaf53e4]
mov ecx, dword [0xaf53b0]
mov eax, dword [eax + 8]
cmp eax, ecx
je 0xa505f8
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0xa505a5
mov ecx, dword [0xaf53e4]
push ecx
call ebx
mov edi, eax
jmp 0xa505da
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0xa505cb
cmp dword [esp + 0x18], 0x103
je 0xa505cb
mov eax, dword [0xaf53e4]
push eax
call ebx
mov edi, eax
jmp 0xa505d3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jge 0xa50523
mov ecx, dword [0xaf53e4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test eax, eax
jl 0xa505e2
jmp 0xa50523
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0xa50523
mov esi, dword [edi + 0x10]
inc esi
mov dword [edi + 0x10], esi
mov edx, dword [0xaf53e4]
mov eax, dword [0xaf53b0]
mov dword [edx + 8], eax
mov ecx, dword [0xaf53e4]
mov edx, dword [esp + 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [0xaf53e4]
mov edx, dword [0xaf53e0]
mov ecx, dword [eax + 0x54]
cmp ecx, edx
je 0xa506e6
mov edx, ecx
mov ecx, dword [0xaf53a0]
test ecx, ecx
mov dword [0xaf53e0], edx
je 0xa5065b
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [0xaf53e4]
mov ecx, dword [0xaf53e0]
add eax, 0x14
push ecx
push eax
lea edx, [esp + 0x24]
push str._s__d
push edx
call fcn.00a7feb4
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
jne 0xa506bc
mov edx, dword [0xaf53b8]
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push 4
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
jne 0xa506bc
lea eax, [esp + 0x1c]
push eax
push str.unable_to_open_or_create_registry_map__s
call fcn.00a504a0
add esp, 8
push 0
push 0
push 0
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0xaf53a0], eax
mov eax, dword [0xaf53e8]
test eax, eax
je 0xa506e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xaf53e8], esi
mov ecx, dword [0xaf53a0]
pop esi
mov dword [edi], ecx
mov edx, dword [0xaf53a4]
mov dword [edi + 4], edx
mov eax, dword [0xaf53a8]
mov dword [edi + 8], eax
mov ecx, dword [0xaf53ac]
pop ebp
mov dword [edi + 0xc], ecx
pop ebx
pop edi
add esp, 0x70
ret