Function at 0x406d80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4257cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x83c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, 0x100
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], edi
call fcn.0041969c
lea eax, [esi + 0x34]
lea ecx, [esp + 0x14]
push eax
xor ebx, ebx
push str.SYSTEMCurrentControlSetServices_
push ecx
mov dword [esp + 0x860], ebx
call fcn.00419ab2
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x858], 1
call fcn.004198e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x854], bl
call fcn.004197e7
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push 1
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406ff7
mov eax, dword [esp + 0x24]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x6c]
push ecx
push edx
push ebx
push ebx
push str.DisplayName
push eax
mov dword [esp + 0x34], edi
call ebp
test eax, eax
jne 0x406e75
call fcn.00419696
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esp + 0x14]
call fcn.0041992f
lea eax, [esp + 0x10]
lea ecx, [esi + 0x10]
push eax
mov byte [esp + 0x858], 2
call fcn.004198e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x854], bl
call fcn.004197e7
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x6c]
push ecx
push edx
push ebx
push ebx
push str.ImagePath
push eax
mov dword [esp + 0x34], edi
call ebp
test eax, eax
jne 0x406f13
call fcn.00419696
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esp + 0x14]
call fcn.0041992f
mov eax, dword [esp + 0x10]
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x858], 3
mov edi, dword [eax - 8]
call fcn.00417acf
sub edi, eax
lea ecx, [esp + 0x18]
dec edi
push edi
push ecx
lea ecx, [esp + 0x18]
call fcn.004179db
push eax
lea ecx, [esi + 0x48]
mov byte [esp + 0x858], 4
call fcn.004198e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x854], 3
call fcn.004197e7
lea ecx, [esp + 0x10]
mov byte [esp + 0x854], bl
call fcn.004197e7
mov edi, 0x100
jmp 0x406f1b
lea ecx, [esi + 0x48]
call fcn.00419772
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push 1
push ebx
push str.Linkage
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406fec
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x6c]
push ecx
push edx
push ebx
push ebx
push str.Bind
push eax
mov dword [esp + 0x34], edi
call ebp
test eax, eax
jne 0x406fd9
call fcn.00419696
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esp + 0x14]
call fcn.0041992f
mov eax, dword [esp + 0x10]
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x858], 5
mov edi, dword [eax - 8]
call fcn.00417acf
sub edi, eax
lea ecx, [esp + 0x18]
dec edi
push edi
push ecx
lea ecx, [esp + 0x18]
call fcn.004179db
push eax
lea ecx, [esi + 0x44]
mov byte [esp + 0x858], 6
call fcn.004198e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x854], 5
call fcn.004197e7
lea ecx, [esp + 0x10]
mov byte [esp + 0x854], bl
call fcn.004197e7
mov edi, 0x100
jmp 0x406fe1
lea ecx, [esi + 0x44]
call fcn.00419772
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ebp, [esi + 0x44]
lea ecx, [esp + 0x14]
push ebp
push str.SYSTEMCurrentControlSetServices_
push ecx
call fcn.00419ab2
push str.ParametersTcpip
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x860], 7
call fcn.00419a3e
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x858], 8
call fcn.004198e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x854], 7
call fcn.004197e7
lea ecx, [esp + 0x14]
mov byte [esp + 0x854], bl
call fcn.004197e7
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
push 1
push ebx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40714a
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x6c]
push edx
push eax
push ebx
push ebx
mov dword [esp + 0x2c], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.IPAddress
push ecx
call edi
test eax, eax
jne 0x4070db
call fcn.00419696
mov edx, dword [eax]
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.0041992f
lea ecx, [esp + 0x10]
mov byte [esp + 0x854], 9
push ecx
lea ecx, [esi + 0x68]
call fcn.004198e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x854], bl
call fcn.004197e7
jmp 0x40713f
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x6c]
push edx
push eax
push ebx
push ebx
push str.DHCPIPAddress
push ecx
call edi
test eax, eax
jne 0x407137
call fcn.00419696
mov edx, dword [eax]
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.0041992f
lea ecx, [esp + 0x10]
mov byte [esp + 0x854], 0xa
push ecx
lea ecx, [esi + 0x68]
call fcn.004198e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x854], bl
call fcn.004197e7
jmp 0x40713f
lea ecx, [esi + 0x68]
call fcn.00419772
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x2c]
call fcn.00409bc0
lea eax, [esi + 0x5d0]
push 0x42e650
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x860], 0xb
call fcn.00419a3e
lea edx, [esi + 0x48]
mov byte [esp + 0x854], 0xc
push edx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004199d8
mov ecx, dword [eax]
mov byte [esp + 0x854], 0xd
push ecx
lea ecx, [esp + 0x30]
call fcn.00409c10
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x854], 0xc
call fcn.004197e7
lea ecx, [esp + 0x14]
mov byte [esp + 0x854], 0xb
call fcn.004197e7
cmp edi, ebx
je 0x407220
push str.FileVersion
lea ecx, [esp + 0x18]
call fcn.00419855
mov edx, dword [eax]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x85c], 0xe
call fcn.00409d30
push eax
lea ecx, [esi + 0x5c]
mov byte [esp + 0x858], 0xf
call fcn.004198e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x854], 0xe
call fcn.004197e7
lea ecx, [esp + 0x14]
mov byte [esp + 0x854], 0xb
call fcn.004197e7
jmp 0x407228
lea ecx, [esi + 0x5c]
call fcn.00419772
lea ecx, [esp + 0x16c]
call fcn.0040ae90
mov ecx, dword [ebp]
mov byte [esp + 0x854], 0x10
push ecx
lea ecx, [esp + 0x170]
call fcn.0040afa0
test eax, eax
jne 0x407263
add esi, 0x80
lea ecx, [esp + 0x16c]
push esi
call fcn.0040b400
lea ecx, [esp + 0x16c]
mov byte [esp + 0x854], 0xb
call fcn.0040af00
lea ecx, [esp + 0x2c]
mov byte [esp + 0x854], bl
call fcn.00409bf0
lea ecx, [esp + 0x20]
mov dword [esp + 0x854], 0xffffffff
call fcn.004197e7
mov ecx, dword [esp + 0x84c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x848
ret