Function at 0x416eaa
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x54
mov eax, 0x46dd8d
call fcn.00431db0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp + 0x10]
mov esi, edx
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], ecx
cmp esi, ebx
je 0x4170c3
cmp edi, ebx
je 0x4170c3
cmp eax, ebx
je 0x4170c3
push str.HKEY_CURRENT_USER
push esi
call fcn.0044497d
pop ecx
pop ecx
test eax, eax
jne 0x416f04
mov dword [ebp - 0x4c], connect
jmp 0x416f54
push str.HKEY_CLASSES_ROOT
push esi
call fcn.0044497d
pop ecx
pop ecx
test eax, eax
jne 0x416f1e
mov dword [ebp - 0x4c], connect
jmp 0x416f54
push str.HKEY_LOCAL_MACHINE
push esi
call fcn.0044497d
pop ecx
pop ecx
test eax, eax
jne 0x416f38
mov dword [ebp - 0x4c], reloc.OLEAUT32.dll_SysReAllocString
jmp 0x416f54
push str.HKEY_USERS
push esi
call fcn.0044497d
pop ecx
pop ecx
test eax, eax
jne 0x4170c3
mov dword [ebp - 0x4c], reloc.WS2_32.dll_closesocket
push 7
pop esi
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], esi
call fcn.00403e67
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], esi
call fcn.00403e67
mov eax, edi
mov byte [ebp - 4], 1
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x416f7b
lea ecx, [ebp - 0x48]
push ecx
sub eax, esi
push edi
mov edi, eax
call fcn.0041351b
mov eax, dword [ebp - 0x50]
pop ecx
pop ecx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x416f98
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x50]
sub eax, esi
mov edi, eax
call fcn.0041351b
pop ecx
pop ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
push 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
pop esi
cmp dword [ebp - 0x30], esi
jae 0x416fc9
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
mov eax, 0x20019
lea ecx, [ebp - 0x54]
call fcn.004011aa
test eax, eax
jne 0x4170a5
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], ebx
cmp dword [ebp - 0x14], esi
jae 0x416ff0
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x5c]
lea ecx, [ebp - 0x4c]
push ecx
push ebx
push edi
push ebx
push eax
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4170a5
mov eax, dword [edi]
cmp eax, 4
jne 0x41704d
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jae 0x41701e
lea eax, [ebp - 0x28]
push dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00415852
lea esi, [ebp - 0x54]
call fcn.00401193
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403f22
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00403f22
xor eax, eax
jmp 0x4170c6
cmp eax, 1
jne 0x4170a5
mov eax, dword [ebp - 0x4c]
add eax, 2
push eax
call fcn.0042d95a
mov edi, eax
mov eax, dword [ebp - 0x4c]
add eax, 2
push eax
push ebx
push edi
call fcn.00431530
mov eax, dword [ebp - 0x28]
add esp, 0x10
cmp dword [ebp - 0x14], esi
jae 0x41707c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x54]
push eax
lea esi, [ebp - 0x4c]
call fcn.004011e8
push dword [ebp - 0x60]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
call fcn.004134ad
push edi
call fcn.0042f2c4
add esp, 0x10
jmp 0x41702b
lea esi, [ebp - 0x54]
call fcn.00401193
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403f22
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00403f22
xor eax, eax
inc eax
call fcn.00431e33
ret