Function at 0x40d220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60dd9d
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x234]
add ecx, 4
call fcn.0040aac0
mov ecx, dword [ebp - 0x234]
add ecx, 0x44
call fcn.0040c9e0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040eae0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp - 0x234]
add ecx, 0x44
call fcn.0040c840
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040ea10
mov ecx, dword [ebp - 0x234]
call fcn.0040e010
lea ecx, [ebp - 0x23c]
call fcn.0040efc0
mov dword [ebp - 4], 1
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.0058abd0
add esp, 0xc
mov dword [ebp - 0x250], 1
mov dword [ebp - 0x24c], 0x104
xor ecx, ecx
mov byte [ebp - 0x235], cl
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x250]
push ecx
push 0x65ed4c
lea ecx, [ebp - 0x235]
call fcn.0040d570
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edx, 2
imul eax, edx, 0
movzx ecx, word [ebp + eax - 0x218]
test ecx, ecx
je 0x40d36a
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x23c]
call fcn.0040aac0
lea ecx, [ebp - 0x23c]
call fcn.0040ec60
lea ecx, [ebp - 0x23c]
call fcn.0040eba0
push ecx
mov ecx, esp
mov dword [ebp - 0x270], esp
push 0x1fc
call fcn.0040ab00
push str._channel
lea eax, [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 0x234]
call fcn.0040d6f0
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x258], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x258]
push edx
mov ecx, dword [ebp - 0x234]
add ecx, 0x10
call fcn.0040ef80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
call fcn.0040aae0
push str.official
mov ecx, dword [ebp - 0x234]
add ecx, 0x10
call fcn.0040ef10
test eax, eax
je 0x40d409
lea ecx, [ebp - 0x23c]
call fcn.0040ac40
test eax, eax
jle 0x40d409
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x234]
add ecx, 0x10
call fcn.0040ef80
push ecx
mov ecx, esp
mov dword [ebp - 0x274], esp
mov edx, dword [ebp - 0x234]
add edx, 0x10
push edx
call fcn.0040efa0
push str._source
lea eax, [ebp - 0x268]
push eax
mov ecx, dword [ebp - 0x234]
call fcn.0040d6f0
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
mov dword [ebp - 0x264], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x264]
push edx
mov ecx, dword [ebp - 0x234]
add ecx, 0x20
call fcn.0040ef80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x268]
call fcn.0040aae0
push str._dir
lea ecx, [ebp - 0x240]
call fcn.0040ab00
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x234]
add eax, 8
push eax
lea ecx, [ebp - 0x240]
push ecx
mov ecx, dword [ebp - 0x234]
call fcn.0040d7d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
call fcn.0040aae0
push str._list
lea ecx, [ebp - 0x244]
call fcn.0040ab00
mov byte [ebp - 4], 5
lea edx, [ebp - 0x244]
push edx
mov ecx, dword [ebp - 0x234]
call fcn.0040d8b0
mov ecx, dword [ebp - 0x234]
mov dword [ecx + 0x14], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x244]
call fcn.0040aae0
push str._pass
lea ecx, [ebp - 0x248]
call fcn.0040ab00
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x234]
add edx, 0x28
push edx
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x234]
call fcn.0040d7d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.0040aae0
mov dword [ebp - 0x26c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.0040aae0
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret 4