Function at 0x403570
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc18
lea ecx, [esp + 0x418]
push ebx
push esi
push eax
push str.SYSTEMCurrentControlSetServices_sParametersTcpip
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 8]
lea eax, [esp + 0x420]
push edx
push 0xf003f
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4037dd
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
mov ebx, 0xff
push str.EnableDHCP
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 4
call esi
test eax, eax
jne 0x4037c3
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
test edx, edx
setne al
test eax, eax
mov dword [esp + 0xc], 7
jne 0x4036de
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.DefaultGateway
push edx
call esi
test eax, eax
jne 0x4037c3
push eax
push eax
lea eax, [esp + 0x828]
push pe_nt_image_headers32
push eax
lea ecx, [esp + 0x30]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0xc30]
lea edx, [esp + 0x20]
push edx
call fcn.0041579d
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.IPAddress
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 7
call esi
test eax, eax
jne 0x4037c3
mov ecx, dword [esp + 0xc28]
lea edx, [esp + 0x20]
push edx
call fcn.0041579d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push str.SubNetMask
push eax
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x4037c3
lea ecx, [esp + 0x20]
push ecx
jmp 0x40379a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push str.DhcpDefaultGateway
push eax
call esi
test eax, eax
jne 0x4037c3
push eax
push eax
lea ecx, [esp + 0x828]
push pe_nt_image_headers32
push ecx
lea edx, [esp + 0x30]
push 0xffffffffffffffff
push edx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0xc30]
lea eax, [esp + 0x20]
push eax
call fcn.0041579d
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.DHCPIPAddress
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 7
call esi
test eax, eax
jne 0x4037c3
mov ecx, dword [esp + 0xc28]
lea eax, [esp + 0x20]
push eax
call fcn.0041579d
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.DHCPSubNetMask
push ecx
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x4037c3
lea edx, [esp + 0x20]
push edx
mov ecx, dword [esp + 0xc30]
call fcn.0041579d
mov eax, dword [esp + 8]
test eax, eax
je 0x4037b5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 1
pop ebx
add esp, 0xc18
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x4037ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
add esp, 0xc18
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x4037ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
add esp, 0xc18
ret