Function at 0x48bf50
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe8b6
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x53f030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x48bf96
xor eax, eax
jmp 0x48c32d
xor edi, edi
mov dword [ebp - 0x238], 0xa
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
push eax
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], edi
call fcn.00488c40
lea eax, [ebp - 0x220]
push eax
push 0x2001f
push edi
push dword [0x53e7bc]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48c320
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004d9060
push 0x7ffe
mov dword [ebp - 0x250], 0x104
mov dword [ebp - 0x254], edi
call fcn.004d7faf
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x22c], ebx
mov ecx, 0x3fff
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x48c038
lea eax, [ebp - 0x270]
mov dword [ebp - 0x234], 0x3fff
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x254]
push eax
push ecx
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
cmp dword [ebp - 0x228], esi
jbe 0x48c10b
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, edi
xor eax, eax
mov dword [ebp - 0x234], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebx], ax
lea eax, [ebp - 0x234]
push eax
push ebx
push esi
push dword [ebp - 0x220]
call edi
test eax, eax
jne 0x48c0f9
mov eax, dword [ebp - 0x230]
push ebx
push dword [eax]
call fcn.004da111
add esp, 8
lea ecx, [ebp - 0x24c]
test eax, eax
je 0x48c104
push ebx
call fcn.00488c40
inc esi
cmp esi, dword [ebp - 0x228]
jb 0x48c0b0
jmp 0x48c109
call fcn.0048bd20
xor edi, edi
cmp dword [ebp - 0x244], 1
jbe 0x48c30b
mov ecx, dword [ebp - 0x24c]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x48c133
push 0x80004005
call fcn.0043a9b0
mov eax, dword [ecx + 8]
mov ebx, dword [ecx]
sub eax, 0x10
push eax
call fcn.0043a9d0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov byte [ebp - 4], 1
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x48c129
mov ecx, dword [ebx + 8]
lea edi, [esi - 0x10]
mov ebx, dword [ebx]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x48c1c3
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x48c1ae
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x48c1ae
push edx
call fcn.0043a9d0
mov dword [ebp - 0x224], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x48c19d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
add esi, 0x10
mov dword [ebp - 0x21c], esi
jmp 0x48c1c3
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0043b750
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], 0
je 0x48c1d6
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test ebx, ebx
jne 0x48c151
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp - 0x24c]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x48c205
push 0x80004005
call fcn.0043a9b0
mov ebx, dword [ecx]
lea eax, [ecx + 8]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0043a620
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], 0
je 0x48c237
push 0
push 0
push 1
push 0
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x48c129
mov ecx, dword [ebx + 8]
lea edi, [esi - 0x10]
mov ebx, dword [ebx]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x48c2ad
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x48c298
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x48c298
push edx
call fcn.0043a9d0
mov dword [ebp - 0x224], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x48c287
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
add esi, 0x10
mov dword [ebp - 0x21c], esi
jmp 0x48c2ad
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0043b750
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], 0
je 0x48c2dd
mov eax, dword [ebp - 0x230]
push esi
push dword [eax]
call fcn.004da111
add esp, 8
test eax, eax
je 0x48c2dd
push 0
push 0
push 1
push 0
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
jne 0x48c237
add esi, 0xfffffff0
mov byte [ebp - 4], bl
lea edi, [ebx + 1]
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48c305
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x22c]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004d89f6
add esp, 4
lea ecx, [ebp - 0x24c]
call fcn.0048bd20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d89fb
mov esp, ebp
pop ebp
ret 0x10