Function at 0x1018cda0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x10373f78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x130], esi
test edi, edi
je 0x1018d1ae
cmp byte [edi], 0
je 0x1018d1ae
xor ebx, ebx
mov ecx, edi
mov eax, 0x102c94d8
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1018ce00
test dl, dl
je 0x1018cdfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1018ce00
add eax, 2
add ecx, 2
test dl, dl
jne 0x1018cde0
xor eax, eax
jmp 0x1018ce05
sbb eax, eax
or eax, 1
test eax, eax
je 0x1018d12f
cmp byte [esi], 0x5b
jne 0x1018ce6d
push 0x5d
push esi
call fcn.102669b0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1018d1ae
inc esi
sub ebx, esi
mov dword [ebp - 0x13c], ebx
cmp ebx, 0x80
jae 0x1018d1ae
push ebx
lea eax, [ebp - 0xa4]
push esi
push eax
call fcn.10266cf0
lea eax, [ebp - 0xa4]
mov byte [ebp + ebx - 0xa4], 0
add esp, 0xc
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], 2
jmp 0x1018cea1
lea eax, [ebp - 0x13c]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
mov ecx, 1
cmp eax, ecx
cmove ebx, ecx
mov dword [ebp - 0x134], ebx
mov ebx, esi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1018ce92
sub ebx, ecx
mov dword [ebp - 0x13c], ebx
mov al, byte [edi]
test al, al
je 0x1018d1ae
nop dword [eax + eax]
xor esi, esi
cmp al, 0x20
je 0x1018cebc
mov cl, al
cmp al, 9
jne 0x1018cec6
mov al, byte [edi + 1]
inc edi
mov cl, al
test al, al
jne 0x1018ceb2
mov edx, edi
mov dword [ebp - 0x128], edx
test cl, cl
je 0x1018d191
cmp cl, 0x20
je 0x1018ceee
cmp cl, 9
je 0x1018ceee
cmp cl, 0x2c
je 0x1018ceee
mov cl, byte [edi + 1]
inc edi
inc esi
test cl, cl
jne 0x1018ced6
test esi, esi
je 0x1018d191
mov eax, dword [ebp - 0x134]
sub eax, 0
je 0x1018d153
sub eax, 1
je 0x1018cf13
sub eax, 1
jne 0x1018d191
push 0x2f
push edx
call fcn.102669b0
mov ebx, eax
add esp, 8
xor eax, eax
mov dword [ebp - 0x12c], eax
test ebx, ebx
je 0x1018cf91
mov ecx, dword [ebp - 0x128]
add ecx, esi
cmp ebx, ecx
jae 0x1018cf91
lea ecx, [ebx + 1]
push ecx
call fcn.1027e5e1
add esp, 4
mov dword [ebp - 0x12c], eax
cmp esi, 0x80
jae 0x1018d191
push esi
mov esi, dword [ebp - 0x128]
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.10266cf0
sub ebx, esi
add esp, 0xc
cmp ebx, 0x80
jae 0x1018d1c1
mov eax, dword [ebp - 0x12c]
mov byte [ebp + ebx - 0x124], 0
lea ebx, [ebp - 0x124]
jmp 0x1018cf97
mov ebx, dword [ebp - 0x128]
cmp dword [ebp - 0x134], 2
jne 0x1018d0a2
test eax, eax
mov ecx, 0x80
cmove eax, ecx
mov esi, eax
and eax, 7
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x130]
shr esi, 3
push 0x17
mov dword [ebp - 0x128], esi
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1018d191
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1018d191
cmp esi, 0x10
ja 0x1018d191
mov ebx, dword [ebp - 0x12c]
jne 0x1018d00e
test ebx, ebx
jne 0x1018d191
jmp 0x1018d012
test esi, esi
je 0x1018d079
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x14]
sub esi, 4
jb 0x1018d031
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1018d036
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1018d020
cmp esi, 0xfffffffc
je 0x1018d073
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1018d191
cmp esi, 0xfffffffd
je 0x1018d073
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1018d191
cmp esi, 0xfffffffe
je 0x1018d073
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1018d191
cmp esi, 0xffffffff
je 0x1018d073
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1018d191
mov esi, dword [ebp - 0x128]
test ebx, ebx
je 0x1018d12f
movzx eax, byte [ebp + esi - 0x24]
mov ecx, 8
movzx edx, byte [ebp + esi - 0x14]
sub ecx, ebx
xor edx, eax
mov eax, 0xff
shl eax, cl
test eax, edx
jmp 0x1018d18f
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x138], 0
cmp eax, 0x20
ja 0x1018d191
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x130]
push 2
call esi
cmp eax, 1
jne 0x1018d191
lea eax, [ebp - 0x138]
push eax
push ebx
push 2
call esi
cmp eax, 1
jne 0x1018d191
mov ebx, dword [ebp - 0x12c]
test ebx, ebx
je 0x1018d142
cmp ebx, 0x20
je 0x1018d142
push dword [ebp - 0x128]
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp - 0x138]
mov esi, eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, 0x20
or edx, 0xffffffff
sub ecx, ebx
xor eax, esi
shl edx, cl
test edx, eax
jne 0x1018d191
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102649e4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x138]
sete al
jmp 0x1018d18d
cmp byte [edx], 0x2e
jne 0x1018d16f
dec esi
cmp esi, ebx
ja 0x1018d18b
mov eax, dword [ebp - 0x130]
sub eax, esi
push ebx
add eax, ebx
push eax
lea eax, [edx + 1]
push eax
jmp 0x1018d17b
cmp esi, ebx
jne 0x1018d18b
push ebx
push dword [ebp - 0x130]
push edx
call fcn.10176b90
add esp, 0xc
test eax, eax
je 0x1018d18b
mov al, 1
jmp 0x1018d18d
xor al, al
test al, al
jne 0x1018d12f
mov al, byte [edi]
cmp al, 0x2c
jne 0x1018d19f
mov al, byte [edi + 1]
inc edi
cmp al, 0x2c
je 0x1018d197
test al, al
je 0x1018d1ae
mov ebx, dword [ebp - 0x13c]
jmp 0x1018ceb0
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.102649e4
mov esp, ebp
pop ebp
ret
call fcn.1026553b
int3