Function at 0x43a7ac
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
mov byte [0x468a67], 1
cmp byte [reloc.ole32.dll_CoCreateInstance], bl
je 0x43a7ff
call fcn.0045c8fb
test eax, eax
jns 0x43a7ed
call fcn.0045c7f6
test eax, eax
js 0x43a7f9
mov byte [0x46927e], 1
call fcn.0045c74f
mov byte [reloc.ole32.dll_CoCreateInstance], bl
push ebx
push 6
xor ecx, ecx
pop ebx
call fcn.0044100b
test eax, eax
jne 0x43adb9
push 0x100
xor ebx, ebx
push ebx
push 0x468468
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x20019
push ebx
push 0x41c288
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43adb9
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
mov edi, ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
mov eax, 0x41c2e4
test edi, edi
je 0x43a868
mov eax, 0x41c2f0
lea ecx, reloc.ADVAPI32.dll_TraceMessage
push ecx
push 0x20019
push ebx
push eax
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43ad38
mov esi, ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
mov eax, ebx
jmp 0x43a89c
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
test eax, eax
je 0x43a8ab
cmp eax, 0xea
jne 0x43ad2c
push 0x14
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x100
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
mov ecx, eax
test ecx, ecx
je 0x43a8d4
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], ebx
jmp 0x43a8d6
mov ecx, ebx
mov eax, dword [0x4685fc]
mov dword [eax*4 + 0x468468], ecx
test ecx, ecx
je 0x43ad2c
push ebx
push ebx
push ebx
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
test eax, eax
je 0x43a933
cmp eax, 0xea
je 0x43a933
mov ecx, dword [0x4685fc]
mov esi, dword [ecx*4 + reloc.ADVAPI32.dll_TraceMessage]
jmp 0x43ad08
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x20019
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push dword [ebp - 0x41c]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43acf6
lea ecx, reloc.ADVAPI32.dll_TraceMessage
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x43a974
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 8]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov edx, dword [0x4685fc]
pop ecx
mov ecx, dword [edx*4 + reloc.ADVAPI32.dll_TraceMessage]
mov dword [ecx], eax
mov ecx, dword [edx*4 + reloc.ADVAPI32.dll_TraceMessage]
cmp dword [ecx], ebx
je 0x43aa0a
mov eax, 0x41c2e4
test edi, edi
je 0x43a9c6
mov eax, 0x41c2f0
mov ecx, dword [ecx]
lea edx, reloc.ADVAPI32.dll_TraceMessage
push edx
push eax
push 0x401c94
mov eax, esi
call fcn.0042c95b
add esp, 0xc
test eax, eax
jns 0x43aa0a
mov eax, dword [0x4685fc]
mov eax, dword [eax*4 + reloc.ADVAPI32.dll_TraceMessage]
cmp dword [eax], ebx
je 0x43aa0a
push dword [eax]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov eax, dword [0x4685fc]
mov eax, dword [eax*4 + reloc.ADVAPI32.dll_TraceMessage]
pop ecx
mov dword [eax], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ebx
push 0x41c2fc
push dword [ebp - 0x414]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x200
call edi
test eax, eax
jne 0x43aa5e
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
jne 0x43aa5e
push 0x100
lea esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0043a703
test eax, eax
je 0x43aa9c
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ebx
push ebx
push dword [ebp - 0x414]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x200
call edi
test eax, eax
jne 0x43ab23
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
jne 0x43ab23
lea ecx, reloc.ADVAPI32.dll_TraceMessage
push 2
lea edx, [ecx + 2]
pop edi
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x43aaa8
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
xor ecx, ecx
mov eax, esi
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov edi, dword [0x4685fc]
pop ecx
mov ecx, dword [edi*4 + reloc.ADVAPI32.dll_TraceMessage]
mov dword [ecx + 4], eax
mov ecx, dword [edi*4 + reloc.ADVAPI32.dll_TraceMessage]
cmp dword [ecx + 4], ebx
je 0x43ab23
mov eax, esi
mov esi, dword [ecx + 4]
lea edx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c88c
test eax, eax
jns 0x43ab23
mov eax, dword [edi*4 + reloc.ADVAPI32.dll_TraceMessage]
cmp dword [eax + 4], ebx
je 0x43ab23
push dword [eax + 4]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov eax, dword [0x4685fc]
mov eax, dword [eax*4 + reloc.ADVAPI32.dll_TraceMessage]
pop ecx
mov dword [eax + 4], ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ebx
push 0x41c320
push dword [ebp - 0x414]
mov edi, 0x200
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43ab76
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
jne 0x43ab76
push 0x100
lea esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0043a703
test eax, eax
je 0x43abb8
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ebx
push 0x41c350
push dword [ebp - 0x414]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43ac42
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
jne 0x43ac42
lea ecx, reloc.ADVAPI32.dll_TraceMessage
push 2
lea edx, [ecx + 2]
pop edi
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x43abc4
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
xor ecx, ecx
mov eax, esi
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov edi, dword [0x4685fc]
pop ecx
mov ecx, dword [edi*4 + reloc.ADVAPI32.dll_TraceMessage]
mov dword [ecx + 8], eax
mov ecx, dword [edi*4 + reloc.ADVAPI32.dll_TraceMessage]
cmp dword [ecx + 8], ebx
je 0x43ac48
mov eax, esi
mov esi, dword [ecx + 8]
lea edx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c88c
test eax, eax
jns 0x43ac48
mov eax, dword [edi*4 + reloc.ADVAPI32.dll_TraceMessage]
cmp dword [eax + 8], ebx
je 0x43ac48
push dword [eax + 8]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov edi, dword [0x4685fc]
mov eax, dword [edi*4 + reloc.ADVAPI32.dll_TraceMessage]
pop ecx
mov dword [eax + 8], ebx
jmp 0x43ac48
mov edi, dword [0x4685fc]
mov eax, dword [edi*4 + reloc.ADVAPI32.dll_TraceMessage]
cmp dword [eax], ebx
je 0x43ac72
cmp dword [eax + 4], ebx
je 0x43ac72
mov dword [eax + 0x10], 1
mov esi, dword [edi*4 + reloc.ADVAPI32.dll_TraceMessage]
push dword [esi]
call fcn.004545c5
mov dword [esi + 0xc], eax
jmp 0x43ac75
mov dword [eax + 0x10], ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ebx
push 0x41c368
push dword [ebp - 0x414]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43acd5
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
jne 0x43acd5
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.00440bc3
test eax, eax
jne 0x43acd5
mov ecx, dword [0x4685fc]
mov eax, dword [ecx*4 + reloc.ADVAPI32.dll_TraceMessage]
mov dword [eax + 0x10], ebx
jmp 0x43acdb
mov ecx, dword [0x4685fc]
push dword [ebp - 0x414]
inc ecx
mov dword [0x4685fc], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
jmp 0x43ad21
mov eax, dword [0x4685fc]
mov esi, dword [eax*4 + reloc.ADVAPI32.dll_TraceMessage]
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
test esi, esi
je 0x43a896
call fcn.0043adcd
mov eax, dword [0x4685fc]
mov dword [eax*4 + 0x468468], ebx
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
jmp 0x43a896
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
inc edi
pop eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
cmp edi, eax
jb 0x43a85a
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x468468], ebx
je 0x43adb9
mov edi, ebx
mov esi, ebx
cmp ebx, dword [0x4685fc]
jae 0x43adb1
mov eax, dword [esi*4 + reloc.ADVAPI32.dll_TraceMessage]
test eax, eax
je 0x43adb1
push dword [eax]
push dword [edi + 0x403e4c]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x43ad94
inc esi
cmp esi, dword [0x4685fc]
jb 0x43ad6a
jmp 0x43adb1
mov ecx, dword [ebx*4 + reloc.ADVAPI32.dll_TraceMessage]
mov eax, dword [esi*4 + reloc.ADVAPI32.dll_TraceMessage]
mov dword [ebx*4 + 0x468468], eax
mov dword [esi*4 + 0x468468], ecx
inc ebx
add edi, 4
cmp edi, 0x34
jb 0x43ad60
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret