Function at 0x508240
Capabilities:
Delete registry value
Move file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bfb98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x694
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
mov eax, dword [esi + 0x74]
mov dword [ebp - 4], 0
test eax, eax
je 0x508355
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push edi
push 0x668740
push eax
mov dword [ebp - 0x28], 0x10
call fcn.0057f2ea
add esp, 0xc
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x20]
push ecx
mov ecx, dword [esi + 0x74]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x508355
mov edx, dword [ebp - 0x48]
mov ebx, dword [ebp + 0xc]
push edx
push ebx
lea eax, [ebp - 0x6a0]
push 0x667914
push eax
call fcn.0057f81e
add esp, 0x10
test edi, edi
je 0x5082f1
push edi
push ebx
lea ecx, [ebp - 0x498]
push 0x667914
push ecx
call fcn.0057f81e
add esp, 0x10
jmp 0x508306
push ebx
lea edx, [ebp - 0x498]
push 0x668378
push edx
call fcn.0057f81e
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0050c250
lea eax, [ebp - 0x6a0]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.0050c300
test eax, eax
je 0x508368
push eax
push edi
push 0x668a5c
lea ecx, [ebp - 0x290]
push ecx
call fcn.0057f2ea
add esp, 0x10
lea edx, [ebp - 0x290]
push edx
mov ecx, esi
call fcn.00502040
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0050c280
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x18]
push eax
call fcn.0050c700
test eax, eax
jne 0x508381
push eax
push edi
push 0x668a0c
jmp 0x50832c
lea ecx, [ebp - 0x18]
call fcn.0050c290
lea eax, [ebp - 0x498]
lea ecx, [ebp - 0x18]
push eax
call fcn.0050c300
test eax, eax
jne 0x508325
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x18]
push eax
call fcn.0050c700
test eax, eax
jne 0x5083b8
push eax
push edi
push 0x668a0c
jmp 0x50832c
lea ecx, [ebp - 0x18]
call fcn.0050c290
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
cmp eax, ecx
jl 0x508436
jg 0x5083d6
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
cmp ecx, eax
jbe 0x508436
lea edx, [ebp - 0x498]
push edx
call fcn.00580313
add esp, 4
cmp eax, 0xffffffff
lea eax, [ebp - 0x498]
push eax
jne 0x50840a
lea ecx, [ebp - 0x290]
push 0x667b78
push ecx
call fcn.0057f2ea
add esp, 0xc
jmp 0x50833b
lea ecx, [ebp - 0x6a0]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 8], eax
je 0x508473
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x6a0]
push eax
push edx
push 0x6689dc
jmp 0x508493
lea edx, [ebp - 0x6a0]
push edx
call fcn.00580313
add esp, 4
cmp eax, 0xffffffff
jne 0x508473
lea eax, [ebp - 0x6a0]
lea ecx, [ebp - 0x290]
push eax
push 0x667b78
push ecx
call fcn.0057f2ea
add esp, 0xc
lea edx, [ebp - 0x290]
mov ecx, esi
push edx
call fcn.00502040
mov ecx, dword [esi + 0x74]
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x508349
lea edx, [ebp - 0x20]
push eax
push edx
push 0x66885c
lea eax, [ebp - 0x290]
push eax
call fcn.0057f2ea
add esp, 0x10
lea ecx, [ebp - 0x290]
push ecx
jmp 0x508342