Function at 0x4098f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd34
xor eax, eax
push ebx
push esi
push edi
mov dword [ebp - 4], eax
push 0
mov edi, 0x49438c
call fcn.00409c60
pop ecx
test eax, eax
jne 0x409919
xor eax, eax
jmp 0x409b73
lea edx, [ebp - 8]
lea ecx, [edi + 0x92]
push edx
push 0x20019
push 0
push ecx
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x409b70
xor esi, esi
push esi
push edi
lea edi, [ebp - 0x2b4]
mov esi, 0x494110
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push edi
lea edi, [ebp - 0x2cc]
mov esi, 0x494128
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov edx, esi
mov eax, dword [0x494140]
add dx, 0x30
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x29c]
mov word [ebp - 0x10], dx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push ecx
push eax
push edx
lea ecx, [ebp - 0x10]
push 0
push ecx
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x409b67
lea edx, [ebp - 0x29c]
push edx
call fcn.004094ac
pop ecx
push 0xc
lea ecx, [ebp - 0x2b4]
lea eax, [edi + 0xfa]
push ecx
push 0
push eax
lea edx, [edi + 0xf0]
push edx
lea ecx, [ebp - 0x29c]
push ecx
call fcn.00402dc0
add esp, 0x18
lea eax, [ebp - 0x2cc]
lea edx, [edi + 0x108]
lea ecx, [edi + 0xfe]
push 0xc
push eax
push 0
push edx
push ecx
lea eax, [ebp - 0x29c]
push eax
call fcn.00402dc0
add esp, 0x18
push 0x5c
lea edx, [ebp - 0x29c]
push edx
call fcn.0047faa8
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x409a42
mov eax, ebx
add ebx, 2
test eax, eax
je 0x409a42
push 0x26
push ebx
call fcn.0047f9f4
add esp, 8
test eax, eax
je 0x409a42
mov word [ebx], 0
push ebx
lea edx, [ebp - 0x2cc]
push edx
lea ecx, [ebp - 0x2b4]
push ecx
lea eax, [edi + 0x10c]
push eax
lea edx, [ebp - 0x94]
push edx
call fcn.00482524
add esp, 0x14
cmp dword [ebp + 0xc], 0
je 0x409aa6
test esi, esi
je 0x409a93
lea ecx, [edi + 0x11e]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0047f9d0
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
call fcn.0047f978
pop ecx
add eax, eax
add dword [ebp + 0xc], eax
lea ecx, [ebp - 0x94]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0047f990
add esp, 8
cmp dword [ebp + 8], 0
je 0x409b5e
test esi, esi
je 0x409ad6
lea edx, [edi + 0x124]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0047f9d0
add esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.0047f978
pop ecx
add eax, eax
add dword [ebp + 8], eax
lea edx, [ebp - 0x94]
push edx
call fcn.0047f978
pop ecx
mov ebx, eax
add ebx, ebx
push 0x31d
push ebx
lea eax, [ebp - 0x94]
push eax
call fcn.00409270
add esp, 0xc
movzx edx, ax
push edx
push 0x2cf
push ebx
lea ecx, [ebp - 0x94]
push ecx
call fcn.00409270
add esp, 0xc
movzx eax, ax
push eax
push 0x133
push ebx
lea edx, [ebp - 0x94]
push edx
call fcn.00409270
add esp, 0xc
movzx ecx, ax
push ecx
push 0xad
push ebx
lea eax, [ebp - 0x94]
push eax
call fcn.00409270
add esp, 0xc
movzx edx, ax
push edx
lea ecx, [edi + 0x12a]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00482524
add esp, 0x18
inc dword [ebp - 4]
inc esi
jmp 0x40993f
mov edx, dword [ebp - 8]
push edx
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret