Function at 0x40d991
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x2b0], eax
mov ebx, esi
mov dword [ebp - 0x2a4], esi
push edi
mov edi, edx
test eax, eax
je 0x40dc53
lea eax, [ebp - 0x2a4]
push eax
push 0x20019
push esi
push 0x4017c0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40dc51
mov dword [ebp - 0x2ac], 1
mov edx, 0x104
push ecx
test edi, edi
je 0x40da05
push 0x401a50
jmp 0x40da0a
push 0x401a70
push ecx
lea ecx, [ebp - 0x290]
call fcn.0040c197
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x2a8], 0x80
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x2ac]
push eax
push esi
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x2a4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40dc45
mov dword [ebp - 0x2b4], 1
lea eax, [ebp - 0x88]
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x298], esi
mov dword [ebp - 0x29c], esi
mov dword [ebp - 0x2a0], esi
jmp 0x40da7f
inc esi
add eax, 2
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x40da7b
mov eax, esi
sub eax, 1
je 0x40dbb6
sub eax, 1
je 0x40db8a
sub eax, 1
je 0x40db57
lea eax, [ebp - 0x88]
test esi, esi
je 0x40dacc
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [ebp - 0x29c], eax
jmp 0x40dbd9
inc esi
add eax, 2
push 0x2c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x40dac8
sub esi, 1
je 0x40db42
sub esi, 1
je 0x40db26
sub esi, 1
je 0x40db03
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [ebp - 0x294], eax
jmp 0x40dbd9
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x294]
push eax
push 0x404340
jmp 0x40db78
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x294]
push eax
push 0x404360
jmp 0x40dba4
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x294]
push eax
push 0x404378
jmp 0x40dbc9
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x294]
push eax
push 0x4042f8
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0x18
jmp 0x40dbd9
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x294]
push eax
push 0x404318
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0x14
jmp 0x40dbd9
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x294]
push eax
push 0x404330
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0x10
mov eax, dword [ebp - 0x294]
mov ecx, dword [ebp - 0x298]
mov ebx, dword [ebp - 0x2a0]
shl eax, 0x10
add ecx, eax
mov eax, dword [ebp - 0x29c]
shl eax, 0x10
add ebx, eax
mov eax, ecx
shr eax, 0x10
cdq
mov esi, eax
mov edi, edx
shld edi, esi, 0x10
movzx eax, cx
shl esi, 0x10
cdq
or esi, eax
or edi, edx
shld edi, esi, 0x10
mov eax, ebx
shr eax, 0x10
shl esi, 0x10
cdq
or esi, eax
or edi, edx
shld edi, esi, 0x10
movzx eax, bx
mov ebx, dword [ebp - 0x2b4]
cdq
shl esi, 0x10
or esi, eax
mov eax, dword [ebp - 0x2b0]
or edi, edx
mov dword [eax], esi
mov dword [eax + 4], edi
push dword [ebp - 0x2a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret