Function at 0x40c910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa20
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [ebp - 0x60a]
push edx
mov dword [ebp - 0xa1c], eax
mov byte [ebp - 0xa0d], 0
mov word [ebp - 0x60c], cx
call fcn.0049eae0
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0xa0a]
push ecx
mov word [ebp - 0xa0c], ax
call fcn.0049eae0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0xa14], 0
mov word [ebp - 0x20c], dx
call fcn.0049eae0
add esp, 0x24
mov dword [ebp - 0xa20], 0x64
mov dword [ebp - 0xa18], 1
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.TargetFolder]
mov word [ebp + eax - 0xa0c], cx
add eax, 2
test cx, cx
jne 0x40c9b0
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x4d337c]
mov word [ebp + eax - 0x60c], cx
add eax, 2
test cx, cx
jne 0x40c9d0
lea eax, [esi + 0x1008]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c9f0
push edi
lea edi, [ebp - 0x60c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40ca10
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40ca10
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x60c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ca35
mov edx, dword [0x4d3378]
lea eax, [ebp - 0x60c]
mov dword [edi], edx
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40ca52
mov ecx, dword [0x4d3364]
mov dword [eax], ecx
mov ecx, dword [0x4d3368]
mov dword [eax + 4], ecx
mov ecx, dword [0x4d336c]
mov dword [eax + 8], ecx
mov ecx, dword [0x4d3370]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4d3374]
lea edi, [ebp - 0x60c]
mov dword [eax + 0x10], ecx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ca93
mov eax, ebx
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40caa5
lea edi, [ebp - 0x60c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40cac0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40cac0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0xa14]
push edx
push 1
mov ecx, eax
push 0
lea eax, [ebp - 0x60c]
push eax
and ecx, 3
push reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
test eax, eax
jne 0x40cb53
lea ecx, [ebp - 0xa20]
push ecx
lea edx, [ebp - 0x20c]
push edx
mov edx, dword [ebp - 0xa14]
lea eax, [ebp - 0xa18]
push eax
push 0
lea ecx, [ebp - 0xa0c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cb53
mov edx, dword [ebp - 0xa1c]
lea eax, [ebp - 0x20c]
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40cb40
mov bl, 1
jmp 0x40cb59
mov bl, byte [ebp - 0xa0d]
mov edx, dword [ebp - 0xa14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 8