Function at 0x5720f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x572302
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x572302
push edi
push 0xb0
push 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov edi, eax
add esp, 8
test edi, edi
je 0x572157
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov ecx, dword [ebp + 0x14]
mov edx, eax
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [edi + 8], ecx
mov ecx, dword [ebp + 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x18], edx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x14], eax
test edx, edx
jne 0x572163
push edi
call fcn.0063e429
add esp, 4
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
mov dword [ebp - 8], 0
push eax
push 0x20019
xor esi, esi
mov dword [ebp - 4], 0
push esi
push str.SoftwareMcAfeeData_Exchange_Layer
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x57225a
mov eax, dword [ebp - 4]
mov dword [ebp - 4], eax
add eax, eax
push eax
test esi, esi
je 0x5721bb
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
jmp 0x5721c3
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov esi, eax
test esi, esi
je 0x5722b8
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push str.InstallPath
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, 0xea
je 0x5721a3
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x572257
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572202
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 0x14]
lea eax, [ebx + ebx]
push eax
push 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x572257
push str.dx_api.dll
push 0x6ce50c
push 0x704d88
push 0x6ce50c
push 0x704d80
push 0x6ce50c
push esi
push 0x704d90
push ebx
push eax
call fcn.0063ee48
add esp, 0x28
mov ebx, dword [ebp + 0x1c]
push esi
call fcn.0063e429
add esp, 4
push 8
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push dword [ebp - 8]
mov esi, eax
mov dword [edi], esi
call fcn.0063e429
add esp, 4
test esi, esi
je 0x5722c1
push edi
call fcn.00575770
add esp, 4
test eax, eax
jne 0x5722c1
lea eax, [edi + 4]
push eax
push dword [edi + 0xc]
mov eax, dword [edi + 0x1c]
push dword [edi + 8]
push dword [edi + 0x14]
push dword [edi + 0x10]
push dword [edi + 0x18]
call eax
add esp, 0x18
test eax, eax
jne 0x5722de
mov dword [ebx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [edi + 0x18]
call fcn.0063e429
push edi
call fcn.0063e429
add esp, 8
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push str.Failed_to_initialize_dxl__result___d
push ebx
push 6
call fcn.005755b0
push edi
call fcn.00572380
add esp, 0x14
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret