Function at 0x4039e0
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [0x441e0c]
neg esi
sbb esi, esi
xor eax, eax
mov dword [esp + 0x10], eax
xor ecx, ecx
mov cl, byte [0x441cdf]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x20], eax
push ecx
mov dword [esp + 0x28], eax
mov eax, dword [0x441cdc]
xor edx, edx
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
mov dl, byte [0x441cde]
xor ecx, ecx
mov cl, ah
push edx
and eax, 0xff
push ecx
push eax
lea edx, [esp + 0x24]
and esi, 0xfffffffa
push 0x4365b4
push edx
mov dword [esp + 0x28], 0
add esi, 7
call edi
xor eax, eax
xor ecx, ecx
mov cl, byte [0x441e0b]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
push ecx
mov dword [esp + 0x4c], eax
xor edx, edx
mov dl, byte [0x441e0a]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [0x441e08]
xor ecx, ecx
push edx
mov cl, ah
and eax, 0xff
push ecx
push eax
lea edx, [esp + 0x50]
push 0x4365b4
push edx
call edi
mov ebx, dword [esp + 0x70]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add esp, 0x30
push str.DhcpIPAddress
push ebx
call edi
push str.DhcpSubnetMask
push ebx
call edi
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push str.EnableDHCP
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x403e7b
mov eax, dword [0x441ff4]
test eax, eax
je 0x403b57
mov ecx, dword [0x441fd4]
mov eax, dword [ecx]
cmp eax, 3
je 0x403af3
mov edx, dword [0x441fdc]
cmp dword [edx], 0
jne 0x403b57
cmp eax, 3
jle 0x403b57
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x403b16
mov eax, dword [0x441fa0]
mov dword [0x436030], eax
call fcn.0041c4b1
test eax, eax
je 0x403b49
mov ecx, dword [0x436030]
push 3
push ecx
push 0x3e0
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push str.DHCP_disabled_n
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
push edx
push esi
push eax
push str.IPAddress
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x403db3
mov eax, dword [0x441ff4]
test eax, eax
je 0x403c14
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x403baa
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x403c14
cmp eax, 3
jle 0x403c14
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x403bcf
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x403c06
mov eax, dword [0x436030]
push 3
push eax
push 0x3ed
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
lea ecx, [esp + 0x24]
push ecx
push str.IP_set_to__s_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x441e0c]
mov edx, str.IPMask
test eax, eax
jne 0x403c27
mov edx, str.SubnetMask
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
lea eax, [esp + 0x28]
push ecx
push eax
push esi
push 0
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x403ceb
mov eax, dword [0x441ff4]
test eax, eax
je 0x403ce1
mov ecx, dword [0x441fd4]
mov eax, dword [ecx]
cmp eax, 3
je 0x403c78
mov edx, dword [0x441fdc]
cmp dword [edx], 0
jne 0x403ce1
cmp eax, 3
jle 0x403ce1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x403c9b
mov eax, dword [0x441fa0]
mov dword [0x436030], eax
call fcn.0041c4b1
test eax, eax
je 0x403cd3
mov ecx, dword [0x436030]
push 3
push ecx
push 0x3fa
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
lea edx, [esp + 0x38]
push edx
push str.SubnetMask:__s_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x2c
ret
push 0x24
mov ecx, 0x442408
call fcn.0042053a
push 0
push 0
push 0
push 0
push 2
push 0x11
call fcn.0041e7ec
mov eax, dword [0x441ff4]
add esp, 0x18
test eax, eax
je 0x403f32
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x403d3c
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x403f32
cmp eax, 1
jle 0x403f32
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x403d63
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x403d9b
mov eax, dword [0x436030]
push 1
push eax
push 0x401
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
add esp, 0x10
call ebx
push eax
push str.Failed_to_set_subnet__error_d_n
call fcn.0041c506
add esp, 8
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2c
ret
push 0x23
mov ecx, 0x442408
call fcn.0042053a
push 0
push 0
push 0
push 0
push 2
push 0x11
call fcn.0041e7ec
mov eax, dword [0x441ff4]
add esp, 0x18
test eax, eax
je 0x403f32
mov ecx, dword [0x441fd4]
mov eax, dword [ecx]
cmp eax, 1
je 0x403e05
mov edx, dword [0x441fdc]
cmp dword [edx], 0
jne 0x403f32
cmp eax, 1
jle 0x403f32
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x403e2a
mov eax, dword [0x441fa0]
mov dword [0x436030], eax
call fcn.0041c4b1
test eax, eax
je 0x403e63
mov ecx, dword [0x436030]
push 1
push ecx
push 0x3f3
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
add esp, 0x10
call ebx
push eax
push str.Failed_to_set_IP_addr__error_d_n
call fcn.0041c506
add esp, 8
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2c
ret
push 0x22
mov ecx, 0x442408
call fcn.0042053a
push 0
push 0
push 0
push 0
push 2
push 0x11
call fcn.0041e7ec
mov eax, dword [0x441ff4]
add esp, 0x18
test eax, eax
je 0x403f32
mov edx, dword [0x441fd4]
mov eax, dword [edx]
cmp eax, 1
je 0x403ec5
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x403f32
cmp eax, 1
jle 0x403f32
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
mov ebx, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x403eec
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x403f24
mov eax, dword [0x436030]
push 1
push eax
push 0x3e6
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
add esp, 0x10
call esi
push eax
push str.Failed_to_disable_DHCP__error_d_n
call fcn.0041c506
add esp, 8
call fcn.0041c4cc
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2c
ret