Function at 0x5069b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5737a8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5069f4
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push 0x58e000
push eax
call fcn.0045acb0
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x50]
push 0x20019
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 1
call fcn.0045b220
or ebx, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x50]
jne 0x506cd4
mov dword [ebp - 0x24], 0
lea ecx, [ecx]
mov dword [ebp - 0x1c], 0x104
call fcn.0045adc0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x5069ea
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
test edi, edi
js 0x506d9a
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x506ab4
push edi
lea ecx, [ebp - 0x14]
call fcn.0045b530
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov dword [ebp - 0x2c], edi
push dword [ecx - 8]
push ecx
call fcn.00526d13
mov edx, eax
add esp, 8
test edx, edx
js 0x506d9a
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x506d9a
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
test edi, edi
jne 0x506ca2
push 0x57e140
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00480bb0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00480af0
add esp, 0x18
mov edx, dword [ebp - 0x30]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x506b54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 0x20019
push dword [ebp - 0x28]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0045b220
test eax, eax
jne 0x506c66
mov dword [ebp - 0x1c], 0x104
call fcn.0045adc0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x5069ea
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 4], 7
test edi, edi
js 0x506d9a
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x506bde
push edi
lea ecx, [ebp - 0x18]
call fcn.0045b530
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push str.PartnerID
lea ecx, [ebp - 0x44]
call fcn.0045d730
test eax, eax
mov eax, dword [ebp - 0x18]
sete byte [ebp - 0xd]
push dword [eax - 8]
push eax
call fcn.00526d13
mov edx, eax
add esp, 8
test edx, edx
js 0x506d9a
mov ecx, dword [ebp - 0x18]
cmp edx, dword [ecx - 8]
jg 0x506d9a
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov word [eax + edx*2], cx
cmp byte [ebp - 0xd], cl
je 0x506c43
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.0046e2c0
add esp, 8
test al, al
jne 0x506d13
mov edx, dword [ebp - 0x18]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x506c63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x506c7b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0x28]
mov ecx, ebx
add edx, 0xfffffff0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x506ca2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ecx, ebx
inc dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x506cc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp edi, 0x103
jne 0x506a60
mov eax, dword [ebp - 0x50]
xor edi, edi
test eax, eax
je 0x506ce1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x506cff
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.0045a580
mov edx, dword [ebp - 0x18]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x506d3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x506d4d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x28]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x506d6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x506d8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x50]
mov edi, 1
jmp 0x506cd6
push 0x80070057
call fcn.0045a8f0
int3