Function at 0x40d145
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2d4
mov eax, dword [0x4424f4]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
mov ebx, dword [0x443f94]
lea eax, [esp + 8]
push esi
push edi
push eax
push 0x20019
xor esi, esi
push esi
push 0x401690
push SysReAllocStringLen
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d332
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 0x4016e8
push dword [esp + 0x24]
inc edi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d306
cmp dword [esp + 0xc], edi
jne 0x40d306
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x30]
mov esi, 0x403518
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, 0x40333c
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, 0x403240
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, 0x403280
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, 0x4034f4
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, 0x4032d0
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, 0x403250
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, 0x403430
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, 0x4032e0
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, 0x403548
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 0x40d2a2
inc ecx
cmp ecx, edi
jne 0x40d28a
mov eax, edx
jmp 0x40d2af
inc edx
add esi, 0x10
cmp edx, 0xa
jb 0x40d288
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 1]
call fcn.0041dee7
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 0x401708
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d328
cmp dword [esp + 0xc], edi
jne 0x40d328
mov ecx, dword [esp + 0x18]
call fcn.0041dd92
push dword [esp + 0x18]
push 0x401730
push edi
call fcn.0041e83a
add esp, 0xc
jmp 0x40d328
mov ecx, dword [0x442ab8]
call fcn.0041dd92
mov ecx, dword [0x442ab8]
push 0x1e
inc ecx
pop eax
cmp eax, ecx
sbb eax, eax
not eax
and eax, ecx
mov dword [0x442ab8], eax
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x442ac8], 0
je 0x40d386
mov eax, dword [0x443f94]
test eax, eax
je 0x40d34f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40d37f
push ebx
mov dword [0x443f94], ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40d37f
cmp dword [0x442534], 0xffffffff
jne 0x40d372
push ecx
push 2
pop edx
call fcn.0041e30f
push 2
mov edx, 0x401750
pop ecx
call fcn.0041e767
xor ecx, ecx
call fcn.0041dfc3
mov ecx, dword [esp + 0x2dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00441130
mov esp, ebp
pop ebp