Function at 0x4fe4c0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x138
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ecx], 0
test edi, edi
je 0x4fe573
mov esi, dword [ebp + 0xc]
mov al, byte [edi]
test al, al
sete cl
test esi, esi
sete dl
or dl, cl
jne 0x4fe573
mov dword [ebp - 0x138], edi
movzx ebx, byte [esi]
test ebx, ebx
je 0x4fe573
cmp bl, 0x2a
je 0x4fe515
mov ecx, 0x2a
sub ecx, ebx
jmp 0x4fe51b
movzx ecx, byte [esi + 1]
neg ecx
test ecx, ecx
je 0x4fe58c
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x40], xmm0
movdqu xmmword [ebp - 0x50], xmm0
movdqu xmmword [ebp - 0x60], xmm0
movdqu xmmword [ebp - 0x70], xmm0
movdqu xmmword [ebp - 0x80], xmm0
movdqu xmmword [ebp - 0x90], xmm0
movdqu xmmword [ebp - 0xa0], xmm0
movdqu xmmword [ebp - 0xb0], xmm0
cmp al, 0x5b
jne 0x4fe590
push 0x5d
push edi
call fcn.00654930
add esp, 8
test eax, eax
je 0x4fe573
inc edi
sub eax, edi
cmp eax, 0x7f
jbe 0x4fe96f
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, ebx
add esp, 0x138
pop esi
pop edi
pop ebx
pop ebp
ret
mov bl, 1
jmp 0x4fe575
lea eax, [ebp - 0x130]
mov dword [eax], 0xffffffff
push edi
call fcn.0066e590
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x130]
push eax
push edi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x4fe954
xor eax, eax
inc eax
mov dword [ebp - 0x140], eax
mov ecx, ebx
mov bl, byte [esi]
test bl, bl
je 0x4fe573
mov dword [ebp - 0x144], ecx
jmp 0x4fe613
cmp eax, 0x20
jne 0x4fe5fb
inc esi
inc edi
movzx eax, byte [esi]
cmp eax, 0x1f
jg 0x4fe5d9
cmp eax, 9
je 0x4fe5de
test eax, eax
je 0x4fe600
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov bl, byte [esi]
jmp 0x4fe60b
cmp eax, 0x2c
jne 0x4fe5f1
mov esi, edi
mov bl, byte [esi + 1]
inc esi
cmp bl, 0x2c
je 0x4fe602
test bl, bl
je 0x4fe573
lea edi, [esi - 1]
jmp 0x4fe61d
mov bl, byte [esi + 1]
inc esi
inc edi
cmp bl, 9
je 0x4fe618
movzx eax, bl
cmp eax, 0x20
je 0x4fe618
xor edx, edx
xor eax, eax
dec eax
mov dword [ebp - 0x134], eax
mov eax, ebx
jmp 0x4fe656
cmp eax, 0x20
je 0x4fe667
cmp eax, 0x2c
je 0x4fe667
mov ecx, dword [ebp - 0x134]
mov al, byte [esi + ecx + 2]
dec edx
inc ecx
mov dword [ebp - 0x134], ecx
inc edi
movzx eax, al
cmp eax, 0x1f
jg 0x4fe639
test eax, eax
je 0x4fe667
cmp eax, 9
jne 0x4fe643
test edx, edx
mov ecx, edx
je 0x4fe6d5
mov eax, ecx
neg eax
cmp dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], ecx
je 0x4fe6dc
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0xc0], xmm0
movdqu xmmword [ebp - 0xd0], xmm0
movdqu xmmword [ebp - 0xe0], xmm0
movdqu xmmword [ebp - 0xf0], xmm0
movdqu xmmword [ebp - 0x100], xmm0
movdqu xmmword [ebp - 0x110], xmm0
movdqu xmmword [ebp - 0x120], xmm0
movdqu xmmword [ebp - 0x130], xmm0
cmp eax, 0x80
jb 0x4fe78b
mov ecx, dword [ebp - 0x13c]
sub esi, ecx
jmp 0x4fe5e0
mov ecx, dword [ebp - 0x134]
cmp byte [esi + ecx], 0x2e
cmove eax, ecx
test eax, eax
je 0x4fe700
cmp bl, 0x2e
mov ecx, dword [ebp - 0x144]
je 0x4fe716
mov dword [ebp - 0x134], esi
jmp 0x4fe720
xor eax, eax
mov dword [ebp - 0x134], esi
mov ebx, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x144]
jmp 0x4fe726
lea edx, [esi + 1]
mov dword [ebp - 0x134], edx
dec eax
mov ebx, dword [ebp - 0x138]
mov edx, ecx
sub edx, eax
jne 0x4fe74b
push ecx
push ebx
push dword [ebp - 0x134]
call fcn.00508ca0
add esp, 0xc
test eax, eax
mov ecx, dword [ebp - 0x13c]
je 0x4fe6d5
jmp 0x4fe58c
mov ecx, dword [ebp - 0x13c]
jbe 0x4fe6d5
mov ebx, dword [ebp - 0x138]
cmp byte [edx + ebx - 1], 0x2e
jne 0x4fe6d5
add edx, dword [ebp - 0x138]
push eax
push edx
push dword [ebp - 0x134]
mov ebx, ecx
call fcn.00508ca0
mov ecx, ebx
add esp, 0xc
test eax, eax
je 0x4fe6d5
jmp 0x4fe58c
push eax
push esi
lea ebx, [ebp - 0x130]
push ebx
call fcn.00654250
add esp, 0xc
mov eax, dword [ebp - 0x134]
mov byte [ebp + eax - 0x12f], 0
push 0x2f
push ebx
call fcn.00654930
add esp, 8
test eax, eax
je 0x4fe7f1
mov ebx, eax
inc eax
push eax
call fcn.0066a960
add esp, 4
mov edx, eax
mov byte [ebx], 0
cmp dword [ebp - 0x140], 2
mov eax, dword [ebp - 0x138]
je 0x4fe806
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x30], ecx
mov ebx, edx
cmp edx, 0x20
ja 0x4fe6cf
jmp 0x4fe8de
xor edx, edx
cmp dword [ebp - 0x140], 2
mov eax, dword [ebp - 0x138]
jne 0x4fe8d4
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x20], xmm0
test edx, edx
mov ecx, 0x80
cmove edx, ecx
movdqu xmmword [ebp - 0x30], xmm0
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0x17
mov ebx, edx
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x4fe6cf
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x130]
push eax
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp ebx, 0x87
ja 0x4fe6cf
cmp eax, 1
jne 0x4fe6cf
mov eax, ebx
shr eax, 3
mov edx, ebx
and edx, 7
mov dword [ebp - 0x134], eax
cmp eax, 0x10
sete al
test edx, edx
setne cl
test al, cl
jne 0x4fe6cf
cmp ebx, 8
jb 0x4fe8a8
push dword [ebp - 0x134]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
mov ebx, edx
call fcn.00652bcd
mov edx, ebx
add esp, 0xc
test eax, eax
jne 0x4fe6cf
test edx, edx
je 0x4fe58c
mov ecx, dword [ebp - 0x134]
mov al, byte [ebp + ecx - 0x30]
xor al, byte [ebp + ecx - 0x20]
movzx eax, al
mov cl, 8
sub cl, dl
shr eax, cl
test eax, eax
je 0x4fe6cf
jmp 0x4fe58c
xor ecx, ecx
mov dword [ebp - 0x20], ecx
xor ebx, ebx
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x4fe6cf
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x130]
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x4fe6cf
test bl, 0x1f
je 0x4fe94c
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x134], eax
push dword [ebp - 0x30]
call dword [sym.imp.WS2_32.dll_htonl]
xor eax, dword [ebp - 0x134]
neg bl
mov ecx, ebx
shr eax, cl
test eax, eax
mov ecx, dword [ebp - 0x13c]
jne 0x4fe6d5
jmp 0x4fe58c
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x30]
jmp 0x4fe93b
xor eax, eax
cmp byte [edi + ebx - 1], 0x2e
sete al
sub ebx, eax
mov dword [ebp - 0x140], 0
jmp 0x4fe5c9
lea ecx, [ebp - 0xb0]
push eax
push edi
push ecx
mov edi, eax
call fcn.00654250
mov ecx, edi
add esp, 0xc
mov byte [ebp + edi - 0xb0], 0
mov dword [ebp - 0x140], 2
lea edi, [ebp - 0xb0]
mov dword [ebp - 0x138], edi
jmp 0x4fe5d1