Function at 0x406920
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44792b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x45b680]
xor eax, esp
mov dword [esp + 0x428], eax
push ebp
push esi
push edi
mov eax, dword [0x45b680]
xor eax, esp
push eax
lea eax, [esp + 0x43c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44c]
mov eax, dword [esp + 0x450]
lea esi, [esp + 0x230]
mov dword [esp + 0x24], ebp
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], 0
sub esi, ecx
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x406982
lea edi, [esp + 0x230]
add edi, 0xfffffffe
jmp 0x4069a0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4069a0
mov ecx, dword [0x44ef70]
mov dword [edi], ecx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4069b6
lea edi, [esp + 0x230]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4069d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x18]
push edx
push 0x20019
mov ecx, eax
push 0
lea eax, [esp + 0x23c]
push eax
and ecx, 3
push reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406b53
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push str.Description
mov edi, 0x104
push ecx
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], edi
call esi
test eax, eax
jne 0x406b53
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call fcn.00404930
mov dword [esp + 0x444], 0
mov eax, dword [ebp + 0xd0]
or ebp, 0xffffffff
test eax, eax
je 0x406ad6
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jl 0x406ada
push eax
push ecx
call fcn.0042df32
add esp, 8
test eax, eax
je 0x406ad6
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
cmp eax, ebp
je 0x406ada
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push str.ServiceName
push ecx
mov dword [esp + 0x34], edi
call esi
test eax, eax
je 0x406ae6
mov dword [esp + 0x444], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
jmp 0x406b45
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x444], ebp
lea eax, [ecx - 0x10]
jmp 0x406b3d
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.m_strAdapterName:
call esi
lea ecx, [esp + 0x28]
push ecx
call esi
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
add ecx, 0xd4
lea esi, [eax + 2]
jmp 0x406b10
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x406b10
sub eax, esi
sar eax, 1
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.00404800
mov dword [esp + 0x444], ebp
mov eax, dword [esp + 0x14]
mov byte [esp + 0x13], 1
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x406b53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x43c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0042de55
add esp, 0x438
ret 8