Function at 0x40d158
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2d4
mov eax, dword [0x4434f4]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
mov ebx, dword [0x444f94]
lea eax, [esp + 8]
push esi
push edi
push eax
push 0x20019
xor esi, esi
push esi
push 0x401680
push SysReAllocStringLen
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d345
lea eax, [esp + 0x14]
mov dword [esp + 0x18], esi
push eax
lea eax, [esp + 0xd4]
mov dword [esp + 0x18], 0x208
push eax
lea eax, [esp + 0x14]
xor edi, edi
push eax
push esi
push 0x4016d8
push dword [esp + 0x24]
inc edi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d319
cmp dword [esp + 0xc], edi
jne 0x40d319
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x30]
mov esi, 0x403508
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xd4]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x40332c
lea edi, [esp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x403230
lea edi, [esp + 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x403270
lea edi, [esp + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x4034e4
lea edi, [esp + 0x78]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x4032c0
lea edi, [esp + 0x88]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x403240
lea edi, [esp + 0x98]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x403420
lea edi, [esp + 0xa8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x4032d0
lea edi, [esp + 0xb8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x403538
lea edi, [esp + 0xc8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CLSIDFromString]
xor edx, edx
lea esi, [esp + 0x30]
xor ecx, ecx
mov eax, dword [esi + ecx*4]
lea edi, [esp + 0x20]
cmp eax, dword [edi + ecx*4]
push 4
pop edi
jne 0x40d2b5
inc ecx
cmp ecx, edi
jne 0x40d29d
mov eax, edx
jmp 0x40d2c2
inc edx
add esi, 0x10
cmp edx, 0xa
jb 0x40d29b
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 1]
call fcn.0041fb3c
lea eax, [esp + 0x14]
mov dword [esp + 0xc], edi
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], edi
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x4016f8
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d33b
cmp dword [esp + 0xc], edi
jne 0x40d33b
mov ecx, dword [esp + 0x18]
call fcn.0041dfa0
push dword [esp + 0x18]
push 0x401720
push edi
call fcn.0041ea5f
add esp, 0xc
jmp 0x40d33b
mov ecx, dword [0x443ab8]
call fcn.0041dfa0
mov ecx, dword [0x443ab8]
push 0x1e
inc ecx
pop eax
cmp eax, ecx
sbb eax, eax
not eax
and eax, ecx
mov dword [0x443ab8], eax
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x443ac8], 0
je 0x40d399
mov eax, dword [0x444f94]
test eax, eax
je 0x40d362
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40d392
push ebx
mov dword [0x444f94], ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40d392
cmp dword [0x443534], 0xffffffff
jne 0x40d385
push ecx
push 2
pop edx
call fcn.0041e530
push 2
mov edx, 0x401740
pop ecx
call fcn.0041e988
xor ecx, ecx
call fcn.0041e1d7
mov ecx, dword [esp + 0x2dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00441b90
mov esp, ebp
pop ebp
ret