Function at 0x471870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660a6d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x7000a8]
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 edi, ecx
mov eax, dword [edi]
test eax, eax
je 0x4718b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x20]
lea ebx, [edi + 0x38]
call fcn.00471c60
mov dword [ebp - 4], 0
mov esi, dword [eax]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call fcn.0044db80
test eax, eax
je 0x471aa4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0044d0a0
test al, al
jne 0x471915
test esi, esi
jne 0x4718fd
xor ecx, ecx
jmp 0x47190b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471902
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.0044d220
mov edx, 0xd
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.004763f0
mov esi, eax
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 0x10
jb 0x471934
mov esi, dword [esi]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call fcn.0044db80
test eax, eax
je 0x471aa4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0044d0a0
test al, al
jne 0x471985
test esi, esi
jne 0x47196d
xor ecx, ecx
jmp 0x47197b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471972
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.0044d220
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x10]
jb 0x471990
mov ebx, dword [ebx]
push eax
push ebx
push 1
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov edx, dword [ebp - 0x14]
or esi, 0xffffffff
mov dword [ebp - 0x1c], eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4719c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4719df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x10
jb 0x471a17
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x471a0d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471aae
push ecx
push edx
call fcn.004b75c0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], 0
add edx, 0xfffffff0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x471a48
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, edi
call fcn.00470dd0
cmp dword [ebp - 0x1c], 0
movzx ebx, al
mov eax, 1
cmove ebx, eax
cmp dword [edi], 0
jne 0x471a86
cmp dword [edi + 0x68], 0x10
lea ecx, [edi + 0x54]
jb 0x471a6e
mov ecx, dword [ecx]
push 0
push 0
push 3
push 0
push 0
push accept
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi], eax
mov al, bl
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.004b75b2
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0044d940
call fcn.004bccbf
int3