Function at 0x43d080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8668
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x43d269
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
mov dword [ebp - 0x34], ebx
test ebx, ebx
jne 0x43d260
cmp dword [ebp - 0x14], eax
je 0x43d260
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov edi, 2
inc eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d7faf
mov esi, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mul edi
mov byte [ebp - 4], 1
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d7faf
add esp, 8
mov edi, eax
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x14], ebx
jbe 0x43d24e
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x43d244
call fcn.0043ae40
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x43d2cd
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
dec eax
je 0x43d1f9
sub eax, 3
jne 0x43d27d
push dword [edi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
push 0x508000
push eax
call fcn.0043ad30
add esp, 0xc
jmp 0x43d209
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], 1
call fcn.0043a690
mov ecx, dword [ebp + 0x10]
push esi
call fcn.0043c2d0
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
lea ecx, [eax + 4]
lea eax, [ebp - 0x38]
push eax
call fcn.0043a620
mov edx, dword [ebp - 0x38]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43d244
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x43d170
push edi
call fcn.004d89f1
push esi
call fcn.004d89f1
mov ebx, dword [ebp - 0x34]
add esp, 8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x38]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43d2a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.004d89f1
push esi
call fcn.004d89f1
add esp, 8
mov eax, 0xb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0043a9b0
int3