Function at 0x568008
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5683aa
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x2c], 4
mov dword [ebp - 8], 0x1400
mov eax, dword [ebp - 8]
call fcn.004027a0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x56838f
lea eax, [ebp - 0x14]
mov edx, 0x104
call fcn.00404974
lea eax, [ebp - 0x18]
mov edx, 0x104
call fcn.00404974
lea eax, [ebp - 0x20]
mov edx, 0x104
call fcn.00404974
lea eax, [ebp - 0x10]
mov edx, 0x5683c4
call fcn.004043c0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
mov eax, dword [ebp - 0x38]
add eax, 8
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 6
lea edx, [ebp - 0x48]
mov ecx, 1
mov eax, 0x568400
call fcn.0040a1bc
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x1c]
call fcn.004047e8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x56836a
mov eax, 0x386
call fcn.004027a0
mov esi, eax
mov edx, 4
mov eax, esi
call fcn.00407938
mov dword [ebp - 0x30], 4
mov eax, dword [ebp - 0x38]
lea edx, [eax + 0x10c]
mov eax, esi
call fcn.00409af4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x568414
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
cmp dword [ebp - 0x24], 1
jne 0x5681fd
mov dword [ebp - 0x30], pe_nt_image_headers32
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x106]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x568420
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x30], pe_nt_image_headers32
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x186]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x568434
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x30], pe_nt_image_headers32
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x206]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x568444
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x30], pe_nt_image_headers32
lea eax, [ebp - 0x20]
call fcn.00404840
mov edx, 0x104
call fcn.00407938
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
call fcn.00404840
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x568454
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
jmp 0x5682a9
mov dword [ebp - 0x30], pe_nt_image_headers32
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x106]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x568464
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x30], pe_nt_image_headers32
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x186]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x568474
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x30], pe_nt_image_headers32
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x206]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x568480
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x30], pe_nt_image_headers32
lea eax, [ebp - 0x20]
call fcn.00404840
mov edx, 0x104
call fcn.00407938
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
call fcn.00404840
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x56848c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov edi, dword [ebp - 0x30]
test edi, edi
jle 0x5682d5
mov ebx, 1
mov eax, dword [ebp - 0x20]
mov al, byte [eax + ebx - 1]
cmp al, 0x2c
je 0x5682c4
cmp al, 0x20
jne 0x5682d1
lea eax, [ebp - 0x20]
call fcn.00404840
mov byte [eax + ebx - 1], 0
inc ebx
dec edi
jne 0x5682b5
lea eax, [ebp - 0x20]
call fcn.00404840
mov edx, eax
lea eax, [esi + 0x286]
call fcn.00409af4
lea eax, [ebp - 0x20]
call fcn.00404840
call fcn.00409ab8
mov ebx, eax
add ebx, 2
lea eax, [ebp - 0x20]
call fcn.00404840
lea edx, [eax + ebx - 1]
lea eax, [esi + 0x306]
call fcn.00409af4
lea eax, [esi + 0x306]
call fcn.00409ab8
cmp eax, 7
jae 0x56832a
mov byte [esi + 0x306], 0
mov edx, 0x568498
lea eax, [esi + 0x186]
call fcn.00409b94
test eax, eax
je 0x568352
mov edx, 0x5684a0
lea eax, [esi + 0x186]
call fcn.00409b94
test eax, eax
jne 0x568360
mov edx, 0x386
mov eax, esi
call fcn.004027c0
jmp 0x56836a
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0041cbe8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x5680a4
mov eax, dword [ebp - 0x34]
call fcn.004027c0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5683b1
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.0040434c
ret