Function at 0x508890
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bfc28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ac
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], esi
mov eax, dword [esi + 0x48]
mov ebx, dword [esi + 0x38]
test eax, eax
mov dword [ebp - 4], 0
je 0x508a30
mov dword [ebp - 0x28], 0x10
mov eax, dword [ebx + 0x40]
push eax
lea ecx, [ebp - 0x18]
push 0x64eff4
push ecx
call fcn.0057f2ea
add esp, 0xc
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x38]
push edx
mov edx, dword [esi + 0x48]
push eax
push 0
lea ecx, [ebp - 0x18]
push 0
push ecx
push edx
call edi
test eax, eax
je 0x50892d
push eax
lea eax, [ebp - 0x174]
push 0x667878
push eax
call fcn.0057f2ea
add esp, 0xc
lea ecx, [ebp - 0x174]
push ecx
mov ecx, esi
call fcn.00508590
mov ecx, dword [esi + 0x48]
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x3c], edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x20]
push edx
push 0x667fc8
push eax
call fcn.0057f2ea
mov edx, dword [esi + 0x48]
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x174]
push eax
push 0x668b90
push ecx
call fcn.0057f2ea
add esp, 0xc
lea edx, [ebp - 0x174]
mov ecx, esi
push edx
call fcn.00508590
mov eax, dword [esi + 0x40]
lea ecx, [ebp - 0x18]
push eax
push 0x64eff4
push ecx
call fcn.0057f2ea
add esp, 0xc
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x18]
push edx
mov edx, dword [esi + 0x48]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
je 0x5089dc
push eax
lea eax, [ebp - 0x174]
push 0x667878
push eax
call fcn.0057f2ea
add esp, 0xc
lea ecx, [ebp - 0x174]
push ecx
mov ecx, esi
call fcn.00508590
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push 0x10
push eax
mov dword [ebp - 0x34], edx
mov edx, dword [esi + 0x48]
push 0
lea ecx, [ebp - 0x18]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x38]
push ecx
push edx
lea ecx, [ebp - 0x18]
push eax
push ecx
lea edx, [ebp - 0x174]
push 0x667834
push edx
call fcn.0057f2ea
add esp, 0x1c
lea eax, [ebp - 0x174]
mov ecx, esi
push eax
call fcn.00508590
test ebx, ebx
je 0x508b85
mov ecx, dword [ebx + 0x20]
mov dword [esi + 0x20], ecx
mov edi, dword [ebx + 0x2c]
test edi, edi
je 0x508aad
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x508aad
push edi
call fcn.0057e90a
add esp, 4
test eax, eax
je 0x508aad
mov eax, dword [esi + 0x2c]
cmp eax, edi
ja 0x508aad
push eax
call fcn.0057e90a
mov edx, dword [esi + 0x2c]
add esp, 4
lea eax, [edx + eax*2]
cmp eax, edi
jb 0x508aad
xor eax, eax
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x20], ax
call fcn.00401fc0
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
test eax, eax
jne 0x508a96
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x2c]
call fcn.00401fc0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x508af6
lea ecx, [esi + 0x2c]
call fcn.00401070
test edi, edi
je 0x508af6
push edi
call fcn.0057e90a
add esp, 4
test eax, eax
je 0x508af6
push edi
call fcn.0057e90a
lea ecx, [eax + eax + 2]
push ecx
call fcn.005970d9
add esp, 8
mov dword [esi + 0x2c], eax
test eax, eax
je 0x508af6
push edi
call fcn.0057e90a
mov edx, dword [esi + 0x2c]
push edi
push edx
mov dword [esi + 0x34], eax
call fcn.0057eaaa
add esp, 0xc
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [ebx]
test eax, eax
je 0x508b1a
mov ecx, dword [esi]
mov edx, dword [eax + 0x30]
mov dword [ecx + 0x30], edx
mov eax, dword [eax + 0x34]
mov dword [ecx + 0x34], eax
mov ecx, dword [ebx]
add ecx, 0x10
call fcn.0050c290
mov ecx, dword [ebx + 0x10]
push ecx
call fcn.00580313
add esp, 4
cmp eax, 0xffffffff
jne 0x508b51
mov edx, dword [ebx + 0x10]
lea eax, [ebp - 0x2b8]
push edx
push 0x667710
push eax
call fcn.0057f2ea
add esp, 0xc
lea ecx, [ebp - 0x2b8]
push ecx
mov ecx, esi
call fcn.00508590
mov eax, dword [ebx]
test eax, eax
je 0x508b6f
cmp dword [eax + 0x60], ebx
jne 0x508b6f
push 0x668b6c
mov ecx, esi
mov dword [eax + 0x60], 0
call fcn.00508590
mov edx, dword [ebx + 0x38]
mov ecx, ebx
mov dword [esi + 0x38], edx
call fcn.00508510
push ebx
call fcn.00597102
add esp, 4
mov ecx, dword [esi]
call fcn.0050ac50
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret