Function at 0x4053f0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x435100
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449fb0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x44], ebx
call fcn.00414de3
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x405439
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x28]
call fcn.00401ba0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x50]
push edx
mov ecx, ebp
mov byte [esp + 0x4c], 2
mov dword [esp + 0x24], 0x200
mov dword [esp + 0x20], ebx
call fcn.00404a50
mov edi, eax
cmp edi, ebx
je 0x4054ab
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 1
call fcn.00402da0
add esi, 0xfffffff0
mov byte [esp + 0x44], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4057aa
mov ecx, dword [esi]
push esi
jmp 0x4057a3
mov eax, dword [esp + 0x4c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
push eax
call fcn.004021b0
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [edi], eax
call dword [esp + 0x54]
mov edi, eax
cmp edi, ebx
jne 0x40577b
test byte [ebp + 0x68], 1
jne 0x40577b
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x200
or eax, ecx
jge 0x405507
push 0x200
lea ecx, [esp + 0x18]
call fcn.00402160
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp + 0x44], eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042159c
add esp, 8
cmp eax, ebx
jl 0x405677
cmp eax, dword [esi - 8]
jg 0x405677
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
mov dword [esp + 0x20], 1
cmp dword [ebp + 0x44], ebx
jne 0x405602
push ecx
lea edi, [esi - 0x10]
mov dword [esp + 0x28], esp
mov ebx, esp
push edi
call fcn.004021b0
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [ebx], eax
call fcn.00404600
mov dword [esp + 0x1c], 0x200
mov eax, dword [edi + 8]
mov ecx, 1
sub ecx, dword [edi + 0xc]
sub eax, 0x200
or eax, ecx
jge 0x4055a7
push 0x200
lea ecx, [esp + 0x18]
call fcn.00402160
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp + 0x44], eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042159c
add esp, 8
test eax, eax
jl 0x405677
cmp eax, dword [esi - 8]
jg 0x405677
inc dword [esp + 0x20]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp + 0x44], ecx
je 0x405558
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp dword [ebp + 0x44], 0x103
je 0x405681
cmp edi, ebx
je 0x405616
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 1
call fcn.00402da0
lea eax, [esi - 0x10]
mov byte [esp + 0x44], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405645
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40566d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x17
jmp 0x4057d0
push 0x80070057
call fcn.00401090
mov dword [ebp + 0x44], ebx
cmp edi, ebx
je 0x40568f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp dword [esp + 0x30], ebx
jle 0x40571b
mov ebx, dword [esp + 0x2c]
nop
mov ecx, dword [esp + 0x50]
push ecx
push 0x438814
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00403780
add esp, 0xc
mov byte [esp + 0x48], 3
test edi, edi
jl 0x405776
cmp edi, dword [esp + 0x34]
jge 0x405776
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebx
push eax
push ecx
call fcn.004036c0
add esp, 0xc
mov ecx, ebp
call fcn.004053f0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x44], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405711
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
add ebx, 4
cmp edi, dword [esp + 0x30]
jl 0x4056a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 1
call fcn.00402da0
lea eax, [esi - 0x10]
mov byte [esp + 0x44], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40574a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405772
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4057d0
call fcn.004142cf
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 1
call fcn.00402da0
lea eax, [esi - 0x10]
mov byte [esp + 0x44], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057aa
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x44], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8