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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591837
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5fcffc]
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 ebx, ecx
mov dword [ebp - 0x230], ebx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.005711a0
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, 0x5d8d04
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408ef6
test dx, dx
je 0x408ef2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408ef6
add eax, 4
add ecx, 4
test dx, dx
jne 0x408ed0
xor eax, eax
jmp 0x408efb
sbb eax, eax
or eax, 1
lea ecx, [ebx + 0x314]
mov dword [ebp - 0x234], ecx
push ecx
push str.Software_
test eax, eax
jne 0x408fe5
lea eax, [ebp - 0x21c]
push eax
call fcn.00422650
push 0x5d9210
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
call fcn.00422a00
add esp, 0x18
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x22c]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408fb6
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push esi
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x408fae
push 0x5d8d04
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x22c]
call edi
mov edx, dword [ebp - 0x238]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408fd6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x21c]
jmp 0x4090e6
lea eax, [ebp - 0x220]
push eax
call fcn.00422650
push str.Console_
push eax
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
call fcn.00422a00
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00420cc0
add esp, 0x24
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x22c]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40909b
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push esi
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x409093
push 0x5d8d04
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x22c]
call edi
mov edx, dword [ebp - 0x238]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4090bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4090dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x220]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4090fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call fcn.00577b2d
mov ebx, eax
mov eax, dword [ebp - 0x230]
push dword [eax + 0x304]
call fcn.00577b2d
add esp, 8
test ebx, ebx
je 0x40912e
cmp ebx, eax
jl 0x40912e
xor edi, edi
jmp 0x40935c
mov eax, dword [ebp + 8]
mov ecx, 0x5d8d04
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40915c
test dx, dx
je 0x409158
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40915c
add eax, 4
add ecx, 4
test dx, dx
jne 0x409136
xor eax, eax
jmp 0x409161
sbb eax, eax
or eax, 1
push dword [ebp - 0x234]
push str.Software_
test eax, eax
jne 0x409242
lea eax, [ebp - 0x238]
push eax
call fcn.00422650
push 0x5d9210
push eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 5
push eax
call fcn.00422a00
mov ecx, dword [ebp + 0xc]
add esp, 0x18
mov ebx, dword [ebp - 0x230]
mov dword [ebp - 0x220], ecx
lea ecx, [ebp - 0x228]
push ecx
mov ebx, dword [ebx + 0x304]
lea ecx, [ebp - 0x230]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409216
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4091e0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0
push dword [ebp - 0x220]
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x409216
push dword [ebp - 0x230]
call edi
mov edx, dword [ebp - 0x21c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409233
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x238]
jmp 0x409340
lea eax, [ebp - 0x224]
push eax
call fcn.00422650
push str.Console_
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 6
push eax
call fcn.00422a00
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
push ecx
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00420cc0
mov ecx, dword [ebp + 0xc]
add esp, 0x24
mov ebx, dword [ebp - 0x230]
mov dword [ebp - 0x220], ecx
lea ecx, [ebp - 0x228]
push ecx
mov ebx, dword [ebx + 0x304]
lea ecx, [ebp - 0x234]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4092f8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4092c2
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0
push dword [ebp - 0x220]
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4092f8
push dword [ebp - 0x234]
call edi
mov edx, dword [ebp - 0x21c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409315
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409336
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x224]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409357
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 1
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40937a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x409399
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
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.0056eb08
mov esp, ebp
pop ebp
ret 8