Function at 0x41c626
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
xor edi, edi
push ecx
push 1
mov eax, edx
mov dword [ebp - 0xc], edi
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], eax
mov ebx, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x41c6b0
mov eax, dword [section..data]
cmp eax, section..data
je 0x41ca10
cmp byte [eax + 0x19], 2
jb 0x41ca10
test byte [eax + 0x1c], 1
je 0x41ca10
mov edi, dword [ebp - 8]
push esi
push edi
push 0x408a30
call fcn.0040a6e1
mov eax, dword [section..data]
add esp, 0xc
mov edx, 0x408af4
push esi
push edi
push 0x4089d8
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x22
pop ecx
call fcn.0040933d
jmp 0x41ca10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x41c73b
cmp esi, 2
je 0x41ca10
mov eax, dword [section..data]
cmp eax, section..data
je 0x41ca10
cmp byte [eax + 0x19], 2
jb 0x41ca10
test byte [eax + 0x1c], 1
je 0x41ca10
mov edi, dword [ebp - 8]
push esi
push dword [ebp + 0xc]
push edi
push 0x408a58
call fcn.0040a6e1
mov eax, dword [section..data]
add esp, 0x10
push esi
push dword [ebp + 0xc]
push edi
push 0x4089d8
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x23
mov edx, 0x408af4
pop ecx
call fcn.0040e9f8
jmp 0x41ca10
push 0x403e20
push dword [ebp - 0x10]
call fcn.00430cb6
mov ebx, eax
mov dword [ebp - 0x24], ebx
pop ecx
pop ecx
test ebx, ebx
jne 0x41c79c
mov eax, dword [section..data]
cmp eax, section..data
je 0x41c794
cmp byte [eax + 0x19], 2
jb 0x41c794
test byte [eax + 0x1c], 1
je 0x41c794
push 0x408a80
call fcn.0040a6e1
mov eax, dword [section..data]
mov edx, 0x408af4
mov dword [esp], 0x4089d8
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x24
pop ecx
call fcn.00409266
push 0xe
pop esi
jmp 0x41ca10
push dword [ebp - 0x10]
push edi
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x41c823
cmp esi, 2
je 0x41ca10
mov eax, dword [section..data]
cmp eax, section..data
je 0x41ca10
cmp byte [eax + 0x19], 2
jb 0x41ca10
test byte [eax + 0x1c], 1
je 0x41ca10
mov edi, dword [ebp - 8]
push esi
push dword [ebp + 0xc]
push edi
push 0x408a58
call fcn.0040a6e1
mov eax, dword [section..data]
add esp, 0x10
push esi
push dword [ebp + 0xc]
push edi
push 0x4089d8
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x25
jmp 0x41c72b
mov ecx, dword [ebp + 8]
call fcn.0041c5ab
cmp dword [ebp - 4], eax
je 0x41c88b
push 0x57
pop esi
mov eax, dword [section..data]
cmp eax, section..data
je 0x41ca10
cmp byte [eax + 0x19], 2
jb 0x41ca10
test byte [eax + 0x1c], 1
je 0x41ca10
push dword [ebp + 8]
push 0x408ab0
call fcn.0040a6e1
mov eax, dword [section..data]
mov edx, 0x408af4
pop ecx
pop ecx
push dword [ebp + 8]
push 0x4089d8
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x26
pop ecx
call fcn.004092b0
jmp 0x41ca10
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 4]
sub eax, 1
je 0x41c9fd
push 3
pop edx
sub eax, edx
je 0x41c9f0
sub eax, edx
je 0x41c908
mov eax, dword [section..data]
cmp eax, section..data
je 0x41ca10
cmp byte [eax + 0x19], 2
jb 0x41ca10
test byte [eax + 0x1c], 1
je 0x41ca10
push dword [ebp - 4]
push 0x408adc
call fcn.0040a6e1
mov eax, dword [section..data]
mov edx, 0x408af4
pop ecx
pop ecx
push dword [ebp - 4]
push 0x4089d8
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x27
pop ecx
call fcn.004093d0
jmp 0x41ca10
mov eax, dword [ebp + 0x10]
push 8
pop ecx
mov dword [ebp - 8], edi
mov word [eax], cx
cmp word [ebx], di
je 0x41c9d9
push 0x408ad4
lea ecx, [ebp - 0x14]
call fcn.0040c185
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
call fcn.0040c2af
lea ecx, [ebp - 0x14]
call fcn.0040a461
push ebx
lea ecx, [ebp - 0x18]
call fcn.0040c185
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
call fcn.0040c2af
lea ecx, [ebp - 0x18]
call fcn.0040a461
push 0x408ad4
lea ecx, [ebp - 0x1c]
call fcn.0040c185
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 8]
call fcn.0040c2af
lea ecx, [ebp - 0x1c]
call fcn.0040a461
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x41c981
sub ecx, edx
sar ecx, 1
lea ebx, [ebx + ecx*2]
add ebx, 2
movzx eax, word [ebx]
mov ecx, eax
test ax, ax
je 0x41c9c4
push 0x408ad8
lea ecx, [ebp - 0x20]
call fcn.0040c185
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 8]
call fcn.0040c2af
lea ecx, [ebp - 0x20]
call fcn.0040a461
movzx ecx, word [ebx]
test cx, cx
jne 0x41c91d
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x24]
test eax, eax
je 0x41c9d9
mov edi, dword [eax]
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 8], eax
lea ecx, [ebp - 8]
call fcn.0040a461
jmp 0x41ca10
mov ecx, dword [ebp + 0x10]
mov word [ecx], dx
mov eax, dword [ebx]
mov dword [ecx + 8], eax
jmp 0x41ca10
mov edi, dword [ebp + 0x10]
push 8
pop eax
push ebx
mov word [edi], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi + 8], eax
cmp dword [ebp - 0xc], 0
je 0x41ca1f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x41ca2a
push ebx
call sub.msvcrt.dll_free
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc