Function at 0x4022f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42af31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
mov eax, dword [0x438180]
push esi
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea ecx, [esp + 0x10]
mov dword [esp + 0x328], eax
call fcn.00402240
mov esi, dword [esp + 0x33c]
test esi, esi
mov dword [esp + 0x330], 0
jne 0x402340
xor eax, eax
jmp 0x40234e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402345
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.00401bd0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4023a9
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x330], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4023a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x402830
push ebx
push ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.DhcpIPAddress
mov ebp, pe_nt_image_headers32
push eax
mov dword [esp + 0x28], ebp
call edi
test eax, eax
mov ebx, dword [esp + 0x344]
jne 0x402406
lea eax, [esp + 0x30]
lea ecx, [ebx + 8]
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4023f0
sub eax, esi
push eax
lea edx, [esp + 0x34]
push edx
call fcn.004019a0
jmp 0x402434
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.IPAddress
push eax
call edi
test eax, eax
jne 0x402434
lea ecx, [esp + 0x30]
push ecx
lea ecx, [ebx + 8]
call fcn.00402100
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push str.DhcpSubnetMask
push edx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
jne 0x402479
lea eax, [esp + 0x30]
lea ecx, [ebx + 0xc]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402463
sub eax, esi
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004019a0
jmp 0x4024a7
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.SubnetMask
push ecx
call edi
test eax, eax
jne 0x4024a7
lea edx, [esp + 0x30]
push edx
lea ecx, [ebx + 0xc]
call fcn.00402100
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.DhcpDefaultGateway
push eax
mov dword [esp + 0x28], ebp
call edi
test eax, eax
jne 0x4024ec
lea eax, [esp + 0x30]
lea ecx, [ebx + 0x10]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4024d6
sub eax, esi
push eax
lea edx, [esp + 0x34]
push edx
call fcn.004019a0
jmp 0x40251a
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.DefaultGateway
push eax
call edi
test eax, eax
jne 0x40251a
lea ecx, [esp + 0x30]
push ecx
lea ecx, [ebx + 0x10]
call fcn.00402100
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x24
push str.SYSTEMControlSet001ControlNetwork
lea ecx, [esp + 0x20]
call fcn.004019a0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402585
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x33c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40257e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x40282d
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x130]
rep stosd dword es:[edi], eax
lea eax, [ebx + 4]
push eax
mov ecx, ebx
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x14], pe_nt_image_headers32
call fcn.00401dc0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push ecx
lea edx, [esp + 0x134]
push edx
push esi
push eax
call edi
test eax, eax
jne 0x4027c5
nop
inc ebp
call fcn.0041e2b6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
push 0x42c5e4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x348], 1
call fcn.00401ed0
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x340], 2
call fcn.00401dc0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x33c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40263b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402645
sub eax, edx
push eax
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
call fcn.00401bd0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x13c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402782
mov edx, dword [esp + 0x20]
push pe_nt_image_headers32
lea ecx, [esp + 0x234]
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x402770
jmp 0x4026b0
mov eax, dword [esp + 0x348]
push eax
lea ecx, [esp + 0x234]
push ecx
inc esi
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x40274f
lea edi, [esp + 0x230]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4026d7
mov edx, dword [str.Connection]
mov eax, dword [0x42c5dc]
mov ecx, dword [0x42c5e0]
mov dword [edi], edx
lea edx, [esp + 0x28]
push edx
push 0x20019
mov dword [edi + 4], eax
push 0
lea eax, [esp + 0x23c]
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40274f
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push str.Name
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402854
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x20]
push pe_nt_image_headers32
lea ecx, [esp + 0x234]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4026b0
inc esi
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x33c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4027a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x134]
push ecx
push ebp
push edx
call edi
test eax, eax
je 0x4025d0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebx + 0xc]
mov ebp, dword [ebx + 8]
push edi
call sub.WS2_32.dll_inet_addr
push ebp
mov esi, eax
call sub.WS2_32.dll_inet_addr
push edi
and esi, eax
call sub.WS2_32.dll_inet_addr
not eax
or esi, eax
push esi
call sub.WS2_32.dll_inet_ntoa
push eax
lea ecx, [ebx + 0x14]
call fcn.00402100
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x33c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402828
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x328]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x324]
pop esi
call fcn.0041092e
add esp, 0x330
ret 0xc
lea eax, [esp + 0x30]
lea edx, [eax + 1]
jmp 0x402860
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402860
sub eax, edx
push eax
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call fcn.004019a0
jmp 0x402771