Function at 0x406600
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cfa0
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x46f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x268], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 2
movups xmmword [ebp - 0x28], xmm0
mov ecx, 0x7069
mov dword [ebp - 0x14], 0xf
mov word [ebp - 0x28], cx
mov byte [ebp - 0x26], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
push ecx
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00404730
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4066a7
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40669d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406cd9
push ecx
push edx
call fcn.0041bb90
add esp, 8
cmp dword [ebp - 0x60], 0
je 0x406c76
cmp dword [ebp - 0x5c], 0x10
lea ecx, [ebp - 0x264]
mov edi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
push 2
mov dword [ebp - 0x264], 0
call edi
cmp eax, 1
jne 0x406c76
push dword [ebp - 0x264]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
call esi
test eax, eax
je 0x406c76
mov eax, dword [0x466b30]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], eax
mov ax, word [0x466b34]
mov dword [ebp - 0x18], 6
mov dword [ebp - 0x14], 0xf
mov word [ebp - 0x24], ax
mov byte [ebp - 0x22], 0
mov edx, dword [ebp - 0x268]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00404730
add esp, 4
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x406773
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406769
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406cd9
push ecx
push edx
call fcn.0041bb90
add esp, 8
cmp dword [ebp - 0x30], 0
je 0x406c16
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x264]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x264], 0
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
push 2
call edi
cmp eax, 1
jne 0x406c16
push dword [ebp - 0x264]
call esi
test eax, eax
je 0x406c16
mov eax, dword [0x466b5c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], eax
mov ax, word [0x466b60]
mov word [ebp - 0x24], ax
mov al, byte [0x466b62]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], 0
mov edx, dword [ebp - 0x268]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.00404730
add esp, 4
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x40683b
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406831
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406cd9
push ecx
push edx
call fcn.0041bb90
add esp, 8
cmp dword [ebp - 0x48], 0
je 0x406bb6
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x264]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x264], 0
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
push 2
call edi
cmp eax, 1
jne 0x406bb6
push dword [ebp - 0x264]
call esi
test eax, eax
je 0x406bb6
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x444]
push eax
call fcn.00404d00
mov esi, eax
lea edi, [ebp - 0x260]
mov ecx, 0x76
rep movsd dword es:[edi], dword [esi]
push 0x470240
call fcn.0040a870
mov edx, str.Do_you_really_want_to_enforce_the_following_configuration_
mov ecx, 0x470240
call fcn.0040a950
push eax
call fcn.0040a870
push eax
call fcn.0040a870
mov edx, str.Serial_Number:
mov ecx, eax
call fcn.0040a950
lea edx, [ebp - 0x1d8]
mov ecx, eax
call fcn.0040a950
push eax
call fcn.0040a870
mov edx, str.IP:
mov ecx, eax
call fcn.0040a950
cmp dword [ebp - 0x5c], 0x10
lea edx, [ebp - 0x70]
push dword [ebp - 0x60]
cmovae edx, dword [ebp - 0x70]
mov ecx, eax
call fcn.0040d120
push eax
call fcn.0040a870
mov edx, str.Subnet:
mov ecx, eax
call fcn.0040a950
cmp dword [ebp - 0x2c], 0x10
lea edx, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae edx, dword [ebp - 0x40]
mov ecx, eax
call fcn.0040d120
push eax
call fcn.0040a870
mov edx, str.Gateway:
mov ecx, eax
call fcn.0040a950
cmp dword [ebp - 0x44], 0x10
lea edx, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae edx, dword [ebp - 0x58]
mov ecx, eax
call fcn.0040d120
push eax
call fcn.0040a870
push eax
call fcn.0040a870
add esp, 0x30
mov edx, str.Enforce_IP___y_n_
mov ecx, 0x470240
call fcn.0040a950
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 9
call fcn.0040ac00
cmp dword [ebp - 0x74], 0x10
lea ecx, [ebp - 0x88]
mov edi, dword [ebp - 0x88]
mov edx, 1
mov esi, dword [ebp - 0x78]
cmovae ecx, edi
cmp esi, edx
cmova esi, edx
mov edx, 0x466c0c
sub esi, 4
jb 0x4069e1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4069e6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4069d0
cmp esi, 0xfffffffc
je 0x406a1a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x406a13
cmp esi, 0xfffffffd
je 0x406a1a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x406a13
cmp esi, 0xfffffffe
je 0x406a1a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x406a13
cmp esi, 0xffffffff
je 0x406a1a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x406a1a
sbb eax, eax
or eax, 1
jmp 0x406a1c
xor eax, eax
test eax, eax
jne 0x406b59
cmp dword [ebp - 0x78], 1
jb 0x406b59
ja 0x406b59
push 0x470240
call fcn.0040a870
mov edx, str.Sending_forceIP....
mov ecx, eax
call fcn.0040a950
push eax
call fcn.0040a870
push eax
call fcn.0040a870
mov edi, dword [sym.imp.WS2_32.dll_inet_pton]
lea ecx, [ebp - 0x264]
add esp, 0xc
mov dword [ebp - 0x264], 0
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
push 2
call edi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, 1
je 0x406a97
mov dword [ebp - 0x268], 0
jmp 0x406aa5
push dword [ebp - 0x264]
call esi
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x264]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x264], 0
cmovae ecx, dword [ebp - 0x40]
push eax
push ecx
push 2
call edi
cmp eax, 1
je 0x406ad7
mov dword [ebp - 0x26c], 0
jmp 0x406ae5
push dword [ebp - 0x264]
call esi
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x264]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x264], 0
cmovae ecx, dword [ebp - 0x70]
push eax
push ecx
push 2
call edi
cmp eax, 1
je 0x406b0f
xor eax, eax
jmp 0x406b17
push dword [ebp - 0x264]
call esi
push dword [ebp - 0x268]
push dword [ebp - 0x26c]
push eax
push dword [ebp - 0x25c]
push dword [ebp - 0x260]
call dword [sym.imp.ipconfig_api_Win32.dll_IPConfig_SendForceIP]
add esp, 0x14
mov edx, 0x466c24
test eax, eax
je 0x406b47
mov edx, str.__Failed_to_set_address.
mov ecx, 0x470240
call fcn.0040a950
mov edi, dword [ebp - 0x88]
jmp 0x406b78
push 0x470240
call fcn.0040a870
mov edx, str.Aborted_forceIP_
mov ecx, eax
call fcn.0040a950
push eax
call fcn.0040a870
add esp, 8
push eax
call fcn.0040a870
mov eax, dword [ebp - 0x74]
add esp, 4
cmp eax, 0x10
jb 0x406bce
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x406baa
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406cd9
push ecx
push edi
call fcn.0041bb90
add esp, 8
jmp 0x406bce
mov edx, 0x466b64
mov ecx, 0x470240
call fcn.0040a950
push eax
call fcn.0040a870
add esp, 4
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x406c02
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406bf8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406cd9
push ecx
push edx
call fcn.0041bb90
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
jmp 0x406c2e
mov edx, 0x466b38
mov ecx, 0x470240
call fcn.0040a950
push eax
call fcn.0040a870
add esp, 4
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x406c62
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406c58
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406cd9
push ecx
push edx
call fcn.0041bb90
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
jmp 0x406c8e
mov edx, 0x466b0c
mov ecx, 0x470240
call fcn.0040a950
push eax
call fcn.0040a870
add esp, 4
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0x10
jb 0x406cbe
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406cb4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406cd9
push ecx
push edx
call fcn.0041bb90
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bb5f
mov esp, ebp
pop ebp
ret
call fcn.004280cb
int3