Function at 0x100069e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1002f988
push 0x10013e80
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x10032014]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x248], edx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x250], 1
mov dword [ebp - 0x264], connect
xor edi, edi
mov dword [ebp - 0x24c], edi
xorps xmm0, xmm0
movups xmmword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x2c], xmm0
push 0x104
push edi
lea eax, [ebp - 0x140]
push eax
call fcn.100146a0
push 0x104
push edi
lea eax, [ebp - 0x244]
push eax
call fcn.100146a0
add esp, 0x18
mov dword [ebp - 4], edi
lea eax, [ebp - 0x254]
push eax
push 0x20019
push edi
push dword [ebp - 0x248]
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100068a0
or edi, 0xffffffff
jmp 0x10006a6f
mov eax, dword [ebp - 0x250]
dec eax
cmp eax, 6
ja case.0x100068b0.5
jmp dword [eax*4 + 0x10006ac8]
mov dword [ebp - 0x248], 0x104
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push str.Host
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x100068b0.5
xor edi, edi
mov dword [ebp - 0x25c], edi
lea esi, [ebp - 0x140]
add esi, edi
push 1
push 0x1002e2d8
push esi
call fcn.1001946a
add esp, 0xc
test eax, eax
je 0x10006936
mov ecx, dword [ebp - 0x258]
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
mov byte [ecx + esi], al
lea esi, [esi + 1]
test al, al
jne 0x10006920
mov edi, 1
jmp 0x10006a6f
inc edi
jmp 0x100068f3
mov dword [ebp - 0x248], 0x104
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push str.Host
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x100068b0.5
lea esi, [ebp - 0x140]
nop dword [eax]
lea eax, [ebp - 0x244]
cmp byte [esi], 0
je 0x100069c0
push 0x104
push esi
push eax
call fcn.100167b0
push 0x104
push 0x1002e2d8
lea eax, [ebp - 0x244]
push eax
call fcn.100167b0
add esp, 0x18
push 0
push esi
call fcn.10013d10
add esp, 8
lea esi, [eax + 1]
jmp 0x10006980
lea ecx, [ebp - 0x244]
mov edx, dword [ebp - 0x258]
sub edx, eax
nop
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x100069d0
mov edi, 1
jmp 0x10006a6f
mov dword [ebp - 0x248], 4
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push str.Host
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x100068b0.5
push dword [ebp - 0x260]
push 0x1002e558
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, 1
jmp 0x10006a6f
mov dword [ebp - 0x248], 0x100
lea eax, [ebp - 0x248]
push eax
push 0
lea eax, [ebp - 0x250]
push eax
push 0
push str.Host
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, 1
test eax, eax
cmove edi, ecx
mov dword [ebp - 0x24c], edi
nop word [eax + eax]
mov dword [ebp - 4], 0xfffffffe
call fcn.10006ab0
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10012425
mov esp, ebp
pop ebp
ret