Function at 0x40d9c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f25df
mov eax, dword fs:[0]
push eax
sub esp, 0xa50
mov eax, dword [0x67f4f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xa5c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0xa30], ebx
mov dword [ebp - 0xa4c], 0
call fcn.00409110
mov ecx, eax
test ecx, ecx
je 0x40dfa0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push str.20160102123456
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.004084e0
test al, al
jne 0x40da4b
push 0xe
push str.20160102123456
mov ecx, ebx
call fcn.004098e0
push 0x200
lea eax, [ebp - 0x210]
mov dword [ebp - 0xa4c], 1
push 0
push eax
call fcn.0053dd00
xor ebx, ebx
add esp, 0xc
mov dword [ebp - 0xa58], ebx
mov dword [ebp - 0xa54], ebx
mov dword [ebp - 0xa50], ebx
mov eax, dword [0x686500]
mov dword [ebp - 4], 2
test al, 1
jne 0x40da9d
or eax, 1
mov dword [0x6864fc], ebx
mov dword [0x686500], eax
mov byte [ebp - 0xa11], 0
lea eax, [ebp - 0xa1c]
mov byte [ebp - 4], 3
push eax
call fcn.00462c42
lea eax, [ebp - 0xa1c]
mov dword [ebp - 0xa24], eax
lea eax, [ebp - 0xa11]
mov dword [ebp - 0xa20], eax
lea eax, [ebp - 0xa24]
push eax
push 0x40bed0
push 0x6864fc
call fcn.004636f9
add esp, 0x10
test eax, eax
je 0x40df84
lea eax, [ebp - 0xa1c]
mov byte [ebp - 4], 5
push eax
call fcn.00462c7c
add esp, 4
mov dword [ebp - 0xa2c], 0
lea eax, [ebp - 0xa2c]
push eax
push 0x20219
push 0
push 0x686504
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40dc28
mov eax, dword [0x686540]
mov ebx, dword [ebp - 0xa2c]
mov dword [ebp - 0xa58], ebx
mov dword [ebp - 0xa54], 0x200
test al, 1
jne 0x40db61
or eax, 1
mov dword [0x68653c], 0
mov dword [0x686540], eax
mov byte [ebp - 0xa11], 0
lea eax, [ebp - 0xa1c]
mov byte [ebp - 4], 8
push eax
call fcn.00462c42
lea eax, [ebp - 0xa1c]
mov dword [ebp - 0xa24], eax
lea eax, [ebp - 0xa11]
mov dword [ebp - 0xa20], eax
lea eax, [ebp - 0xa24]
push eax
push 0x40c350
push 0x68653c
call fcn.004636f9
add esp, 0x10
test eax, eax
je 0x40dd50
lea eax, [ebp - 0xa1c]
mov byte [ebp - 4], 0xa
push eax
call fcn.00462c7c
add esp, 4
mov dword [ebp - 0xa2c], 0x800
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0xa28]
push eax
push 0
push 0x686544
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40dc28
mov eax, dword [ebp - 0xa28]
cmp eax, 1
je 0x40dc05
cmp eax, 2
jne 0x40dc28
mov eax, dword [ebp - 0xa2c]
test eax, eax
je 0x40dcfc
test al, 1
jne 0x40dc28
shr eax, 1
cmp word [ebp + eax*2 - 0xa12], 0
je 0x40dd05
mov eax, dword [0x686564]
test al, 1
jne 0x40dc43
or eax, 1
mov dword [0x686560], 0
mov dword [0x686564], eax
mov byte [ebp - 0xa11], 0
lea eax, [ebp - 0xa1c]
mov byte [ebp - 4], 0xd
push eax
call fcn.00462c42
lea eax, [ebp - 0xa1c]
mov dword [ebp - 0xa24], eax
lea eax, [ebp - 0xa11]
mov dword [ebp - 0xa20], eax
lea eax, [ebp - 0xa24]
push eax
push 0x40c010
push 0x686560
call fcn.004636f9
add esp, 0x10
test eax, eax
je 0x40df68
lea eax, [ebp - 0xa1c]
mov byte [ebp - 4], 0xf
push eax
call fcn.00462c7c
add esp, 4
mov byte [ebp - 4], 2
push 0x686568
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
je 0x40dd74
test ebx, ebx
je 0x40dcd7
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xa30]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00478a88
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov word [ebp - 0xa10], ax
lea ecx, [ebp - 0x210]
mov edx, 0xff
lea esi, [ebp - 0xa10]
mov eax, ecx
sub esi, eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffeff]
test eax, eax
je 0x40dd3e
movzx eax, word [ecx + esi]
test ax, ax
je 0x40dd3e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40dd20
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
jmp 0x40dc28
lea eax, [ebp - 0xa1c]
mov byte [ebp - 4], 0xb
push eax
call fcn.00462cbe
add esp, 4
mov byte [ebp - 4], 9
test al, al
je 0x40dfc0
jmp 0x40dfaa
mov eax, dword [0x686598]
mov dword [ebp - 0xa48], 0
mov dword [ebp - 0xa44], 0
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 0
mov dword [ebp - 0xa38], 0
mov dword [ebp - 0xa34], 0
test al, 1
jne 0x40ddcb
or eax, 1
mov dword [0x686594], 0
mov dword [0x686598], eax
mov byte [ebp - 0xa11], 0
lea eax, [ebp - 0xa1c]
mov byte [ebp - 4], 0x12
push eax
call fcn.00462c42
lea eax, [ebp - 0xa1c]
mov dword [ebp - 0xa24], eax
lea eax, [ebp - 0xa11]
mov dword [ebp - 0xa20], eax
lea eax, [ebp - 0xa24]
push eax
push 0x40c0e0
push 0x686594
call fcn.004636f9
add esp, 0x10
test eax, eax
je 0x40df4c
lea eax, [ebp - 0xa1c]
mov byte [ebp - 4], 0x14
push eax
call fcn.00462c7c
lea eax, [ebp - 0xa34]
push eax
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0xa3c]
push eax
lea eax, [ebp - 0xa40]
push eax
lea eax, [ebp - 0xa44]
push eax
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0x210]
push 0x68659c
push eax
call fcn.0040f640
mov eax, dword [0x6865e0]
add esp, 0x24
test al, 1
jne 0x40de84
or eax, 1
mov dword [0x6865dc], 0
mov dword [0x6865e0], eax
mov byte [ebp - 0xa11], 0
lea eax, [ebp - 0xa1c]
mov byte [ebp - 4], 0x17
push eax
call fcn.00462c42
lea eax, [ebp - 0xa1c]
mov dword [ebp - 0xa24], eax
lea eax, [ebp - 0xa11]
mov dword [ebp - 0xa20], eax
lea eax, [ebp - 0xa24]
push eax
push 0x40c450
push 0x6865dc
call fcn.004636f9
add esp, 0x10
test eax, eax
je 0x40df30
lea eax, [ebp - 0xa1c]
mov byte [ebp - 4], 0x19
push eax
call fcn.00462c7c
push dword [ebp - 0xa34]
mov esi, dword [ebp - 0xa30]
push dword [ebp - 0xa38]
mov byte [ebp - 4], 2
push dword [ebp - 0xa3c]
push dword [ebp - 0xa40]
push dword [ebp - 0xa44]
push dword [ebp - 0xa48]
push 0x6865e4
push esi
call fcn.0040d7f0
add esp, 0x24
test ebx, ebx
je 0x40dcdd
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40dcdd
lea eax, [ebp - 0xa1c]
mov byte [ebp - 4], 0x1a
push eax
call fcn.00462cbe
add esp, 4
mov byte [ebp - 4], 0x18
jmp 0x40dd67
lea eax, [ebp - 0xa1c]
mov byte [ebp - 4], 0x15
push eax
call fcn.00462cbe
add esp, 4
mov byte [ebp - 4], 0x13
jmp 0x40dd67
lea eax, [ebp - 0xa1c]
mov byte [ebp - 4], 0x10
push eax
call fcn.00462cbe
add esp, 4
mov byte [ebp - 4], 0xe
jmp 0x40dd67
lea eax, [ebp - 0xa1c]
mov byte [ebp - 4], 6
push eax
call fcn.00462cbe
add esp, 4
mov byte [ebp - 4], 4
jmp 0x40dd67
push 0x80004005
call fcn.004084c0
sub esp, 8
lea eax, [ebp - 0xa1c]
mov ecx, esp
push eax
call fcn.00407770
call fcn.00407ca0
call fcn.004637ca
int3