Function at 0x415b60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58667d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5fcfe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0041b1fd
mov edi, eax
test edi, edi
je 0x415de8
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x597998]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
mov ebx, dword [ebp + 0xc]
push eax
push 0xf003f
push 0
push edi
mov dword [ebp - 4], 0
push ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x415c20
cmp byte [ebp + 0x1c], 0
je 0x415c07
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x415c20
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x415d72
xor ecx, ecx
jmp 0x415d86
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x415c0e
mov ebx, dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 1
push ecx
push 0
push ebx
push eax
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x415d67
cmp eax, 0xea
je 0x415cde
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x415c8f
cmp word [edx], 0
je 0x415c8f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415c73
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.0040b2c0
mov esi, dword [ebp - 0x14]
cmp byte [ebp + 0x1c], 0
je 0x415d67
mov dword [ebp - 0x20], 1
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x415d67
lea ecx, [ebp - 0x14]
call fcn.0040af30
push dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415d93
push dword [ebp - 0x1c]
call fcn.005665a5
mov edi, eax
add esp, 4
test edi, edi
jne 0x415d2b
add esi, 0xfffffff0
push esi
call fcn.0040a8a0
mov ebx, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x415dd2
lfence
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
jmp 0x415dc6
push dword [ebp - 0x1c]
push 0
push edi
call fcn.00560250
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415d5e
push edi
lea ecx, [ebp - 0x14]
call fcn.00419a40
mov esi, dword [ebp - 0x14]
push edi
call fcn.005665a0
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415d93
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415d77
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.0040b2c0
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
push esi
call fcn.0040a8a0
mov ebx, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x415dd2
lfence
mov edi, dword [esi]
push esi
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x597998]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x80004005
call fcn.0040b400
int3