Function at 0x42dc40
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba90e
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4f7108]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x60], 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x40], 0
jb 0x42dcb0
mov edx, dword [edx]
lea eax, [ebp - 0x40]
push eax
push edx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x42e041
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x20
push eax
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
push eax
push 0
push dword [ebp - 0x40]
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.IPHLPAPI.DLL_SendARP]
test eax, eax
jne 0x42e041
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x42e041
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov dword [ebp - 0x58], eax
test ecx, ecx
je 0x42e041
movzx eax, byte [ebp + eax - 0x38]
push eax
lea eax, [ebp - 0x18]
push str._.2X
push eax
call fcn.0042f1b0
lea esi, [ebp - 0x18]
add esp, 0xc
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x42dd30
mov edx, dword [edi + 0x10]
sub esi, ecx
mov ecx, dword [edi + 0x14]
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x50], ecx
cmp esi, eax
ja 0x42dd79
lea eax, [edx + esi]
mov dword [edi + 0x10], eax
mov eax, edi
cmp ecx, 0x10
jb 0x42dd5c
mov eax, dword [edi]
lea edi, [eax + edx]
push esi
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00483a80
mov byte [edi + esi], 0
add esp, 0xc
mov edi, dword [ebp - 0x54]
jmp 0x42dec3
mov eax, SysReAllocString
sub eax, edx
cmp eax, esi
jb 0x42e05e
lea eax, [edx + esi]
mov ecx, eax
mov dword [ebp - 0x64], eax
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x42ddaa
mov eax, SysReAllocString
mov dword [ebp - 0x44], eax
mov eax, 0x80000023
jmp 0x42ddfb
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x54]
shr eax, 1
mov dword [ebp - 0x48], eax
mov eax, SysReAllocString
sub eax, dword [ebp - 0x48]
cmp dword [ebp - 0x50], eax
jbe 0x42ddd1
mov eax, SysReAllocString
mov dword [ebp - 0x44], eax
mov eax, 0x80000023
jmp 0x42ddfb
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x54]
cmp ecx, eax
cmovb ecx, eax
mov dword [ebp - 0x44], ecx
lea eax, [ecx + 1]
mov dword [ebp - 0x4c], eax
cmp eax, 0x1000
jb 0x42de1c
add eax, 0x23
cmp eax, dword [ebp - 0x4c]
jbe 0x42e063
push eax
call fcn.0047e643
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x42e068
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x44]
jmp 0x42de30
test eax, eax
je 0x42de2e
push eax
call fcn.0047e643
mov ecx, dword [ebp - 0x44]
add esp, 4
jmp 0x42de30
xor eax, eax
cmp dword [ebp - 0x50], 0x10
mov edx, dword [ebp - 0x64]
mov dword [edi + 0x10], edx
mov edx, dword [ebp - 0x5c]
mov dword [edi + 0x14], ecx
mov dword [ebp - 0x48], eax
push edx
lea ecx, [eax + edx]
mov dword [ebp - 0x44], ecx
jb 0x42dea0
mov ecx, dword [edi]
push ecx
push eax
mov dword [ebp - 0x4c], ecx
call fcn.00483a80
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x44]
call fcn.00483a80
mov eax, dword [ebp - 0x44]
add esp, 0x18
mov ecx, dword [ebp - 0x50]
inc ecx
mov byte [eax + esi], 0
mov eax, dword [ebp - 0x4c]
cmp ecx, 0x1000
jb 0x42de94
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e068
mov eax, edx
push ecx
push eax
call fcn.0047ea2e
add esp, 8
jmp 0x42debe
push edi
push eax
call fcn.00483a80
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x44]
call fcn.00483a80
mov eax, dword [ebp - 0x44]
add esp, 0x18
mov byte [eax + esi], 0
mov eax, dword [ebp - 0x48]
mov dword [edi], eax
mov eax, dword [ebp - 0x3c]
dec eax
cmp dword [ebp - 0x58], eax
je 0x42e031
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x50], edx
cmp eax, 1
jb 0x42df10
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x42def4
mov eax, dword [edi]
push 1
lea esi, [ecx + eax]
push 0x4dd71c
push esi
call fcn.00483a80
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x42e031
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x42e05e
lea esi, [ecx + 1]
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x42df38
mov esi, SysReAllocString
lea eax, [esi + 0x24]
jmp 0x42df77
mov eax, edx
shr eax, 1
mov dword [ebp - 0x4c], eax
mov eax, SysReAllocString
sub eax, dword [ebp - 0x4c]
cmp edx, eax
jbe 0x42df55
mov esi, SysReAllocString
lea eax, [esi + 0x24]
jmp 0x42df77
mov eax, dword [ebp - 0x4c]
add eax, edx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x42df98
add eax, 0x23
lea ecx, [esi + 1]
cmp eax, ecx
jbe 0x42e063
push eax
call fcn.0047e643
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x42e068
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x44]
jmp 0x42dfac
test eax, eax
je 0x42dfaa
push eax
call fcn.0047e643
mov ecx, dword [ebp - 0x44]
add esp, 4
jmp 0x42dfac
xor eax, eax
cmp dword [ebp - 0x50], 0x10
lea edx, [ecx + 1]
mov dword [edi + 0x14], esi
lea esi, [eax + ecx]
mov dword [ebp - 0x48], eax
mov dword [edi + 0x10], edx
mov dword [ebp - 0x4c], esi
push ecx
jb 0x42e011
mov esi, dword [edi]
push esi
push eax
call fcn.00483a80
push 1
push 0x4dd71c
push dword [ebp - 0x4c]
call fcn.00483a80
mov eax, dword [ebp - 0x4c]
add esp, 0x18
mov ecx, dword [ebp - 0x50]
inc ecx
mov byte [eax + 1], 0
cmp ecx, 0x1000
jb 0x42e005
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x42e068
mov esi, edx
push ecx
push esi
call fcn.0047ea2e
add esp, 8
jmp 0x42e02c
push edi
push eax
call fcn.00483a80
push 1
push 0x4dd71c
push esi
call fcn.00483a80
add esp, 0x18
mov byte [esi + 1], 0
mov eax, dword [ebp - 0x48]
mov dword [edi], eax
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp eax, dword [ebp - 0x3c]
jb 0x42dd10
mov eax, edi
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.0047e22a
mov esp, ebp
pop ebp
ret
call fcn.0040556b
call fcn.004054f4
call fcn.0048c979
int3