Function at 0x51811c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x52887a
call fcn.004a5528
sub esp, 0x38
push esi
mov esi, ecx
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
and dword [ebp - 4], 0
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call fcn.005157bf
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.0050169b
mov eax, dword [esi + 8]
test eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], 1
je 0x51864e
add esi, 4
push ebx
mov dword [ebp - 0x40], esi
push edi
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push eax
call fcn.004981c2
mov edi, dword [eax]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x44], edi
call fcn.00401f00
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401f00
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00401f00
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00401f00
mov ebx, dword [ebp + 8]
test ebx, ebx
mov byte [ebp - 4], 5
je 0x51824b
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 6
call fcn.005157bf
push dword [ebp - 0x30]
mov eax, dword [eax + 8]
push dword [ebp - 0x2c]
push eax
call dword [sym.imp.shell32.dll_ExtractIconA]
mov esi, eax
test esi, esi
lea eax, [ebp - 0x34]
je 0x518220
push dword [ebp - 0x30]
push 0x563268
push eax
call fcn.004024a0
add esp, 0xc
push esi
call dword [sym.imp.user32.dll_DestroyCursor]
jmp 0x518230
push 0
push 0x563268
push eax
call fcn.004024a0
add esp, 0xc
mov esi, dword [ebp - 0x34]
push dword [esi - 0xc]
lea ecx, [ebp - 0x38]
push esi
call fcn.004022f0
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 5
call fcn.00401270
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 7
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 8
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
push 5
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
mov byte [ebp - 4], 9
call dword [eax + 0x64]
test eax, eax
mov esi, dword [ebp - 0x38]
je 0x5185f1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x5185f1
mov eax, dword [edi]
push 6
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, edi
call dword [eax + 0x64]
test eax, eax
jne 0x5182cf
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004023f0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.00517fe0
test eax, eax
jne 0x51830c
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401270
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401270
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401270
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
jmp 0x518426
test ebx, ebx
je 0x518337
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0x563278
push eax
call fcn.004024a0
add esp, 0xc
push 0
push esi
push dword [ebp - 0x14]
call fcn.00517fe0
test eax, eax
je 0x518402
mov eax, dword [edi]
push 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, edi
call dword [eax + 0x64]
test eax, eax
je 0x51837d
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x51837d
push 0x563258
lea ecx, [ebp - 0x24]
call fcn.00402630
test ebx, ebx
je 0x518476
push 0x56324c
lea ecx, [ebp - 0x28]
call fcn.00402630
push 0x563230
jmp 0x518464
mov edi, 0x563220
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0x5632b0
push eax
call fcn.004024a0
add esp, 0x10
push 0
push 0x563210
push dword [ebp - 0x14]
call fcn.00517fe0
test eax, eax
je 0x518402
test ebx, ebx
je 0x518469
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0x56329c
push eax
call fcn.004024a0
add esp, 0x10
push 0
push 0x563200
push dword [ebp - 0x14]
call fcn.00517fe0
test eax, eax
je 0x518402
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0x563288
push eax
call fcn.004024a0
add esp, 0x10
push 0
push 0x5631e0
push dword [ebp - 0x14]
call fcn.00517fe0
test eax, eax
jne 0x51844c
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401270
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401270
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401270
lea ecx, [esi - 0x10]
call fcn.00401270
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401270
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00401270
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
jmp 0x518636
mov edi, 0x563228
push edi
lea ecx, [ebp - 0x24]
call fcn.00402630
push edi
lea ecx, [ebp - 0x28]
call fcn.00402630
push edi
lea ecx, [ebp - 0x20]
jmp 0x518471
push 0x563258
lea ecx, [ebp - 0x24]
call fcn.00402630
push 0x563260
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0x5632b0
push eax
call fcn.004024a0
mov edi, dword [ebp - 0x24]
add esp, 0x10
push 0
push edi
push dword [ebp - 0x14]
call fcn.00517fe0
test eax, eax
jne 0x5184e0
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401270
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401270
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401270
lea ecx, [esi - 0x10]
call fcn.00401270
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401270
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
jmp 0x51862e
test ebx, ebx
mov ebx, dword [ebp - 0x28]
je 0x518541
push 0x563260
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0x56329c
push eax
call fcn.004024a0
add esp, 0x10
push 0
push ebx
push dword [ebp - 0x14]
call fcn.00517fe0
test eax, eax
je 0x5185f7
push 0x563260
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0x563288
push eax
call fcn.004024a0
add esp, 0x10
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call fcn.00517fe0
test eax, eax
je 0x5185f7
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx]
push 4
lea edx, [ebp - 0x18]
push edx
call dword [eax + 0x64]
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x5185f7
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
mov ecx, 0x208
push eax
mov dword [ebp - 0x44], ecx
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401a80
push eax
push dword [ebp - 0x34]
push 0x80000000
call dword [sym.imp.advapi32.dll_RegQueryValueA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x34], eax
call fcn.004980b4
cmp dword [ebp - 0x34], 0
jne 0x5185b2
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x5185b2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004676a0
test al, al
pop ecx
pop ecx
je 0x5185f7
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.00517fe0
test eax, eax
je 0x5185f7
cmp dword [ebp + 8], 0
je 0x5185f7
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push 0x56326c
push eax
call fcn.004024a0
add esp, 0xc
push 0x5631d4
push 0x5631d0
push dword [ebp - 0x14]
call fcn.00517fe0
jmp 0x5185f7
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401270
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401270
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401270
lea ecx, [esi - 0x10]
call fcn.00401270
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401270
lea ecx, [ebx - 0x10]
call fcn.00401270
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 1
call fcn.00401270
inc dword [ebp - 0x30]
cmp dword [ebp - 0x3c], 0
jne 0x51817a
pop edi
pop ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401270
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00401270
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4