Function at 0x101ed840
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x108], edi
test edi, edi
je 0x101edabd
mov bl, byte [edi]
test bl, bl
je 0x101edabd
test esi, esi
je 0x101edabd
cmp byte [esi], 0
je 0x101edabd
xor ecx, ecx
mov eax, 0x102f9c74
mov dword [ebp - 0x10c], ecx
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x101ed8b4
test dl, dl
je 0x101ed8b0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x101ed8b4
add eax, 2
add ecx, 2
test dl, dl
jne 0x101ed894
xor eax, eax
jmp 0x101ed8b9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x101ed8d0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
cmp bl, 0x5b
jne 0x101ed92b
push 0x5d
push edi
call fcn.101fdb70
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x101edabd
inc edi
sub ebx, edi
cmp ebx, 0x80
jae 0x101edabd
push ebx
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.101fcde0
lea eax, [ebp - 0x104]
mov byte [ebp + ebx - 0x104], 0
mov ecx, 2
mov dword [ebp - 0x108], eax
add esp, 0xc
mov dword [ebp - 0x10c], ecx
jmp 0x101ed962
mov ebx, edi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x101ed930
lea eax, [ebp - 0x110]
sub ebx, ecx
push eax
push edi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x101ed958
mov ecx, eax
mov dword [ebp - 0x10c], ecx
jmp 0x101ed962
cmp byte [edi + ebx - 1], 0x2e
jne 0x101ed960
dec ebx
xor ecx, ecx
cmp byte [esi], 0
je 0x101edabd
nop dword [eax + eax]
mov al, byte [esi]
xor edi, edi
test al, al
je 0x101ed988
cmp al, 0x20
je 0x101ed980
cmp al, 9
jne 0x101ed988
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x101ed978
mov al, byte [esi]
mov edx, esi
test al, al
je 0x101edaa2
cmp al, 0x20
je 0x101ed9a9
cmp al, 9
je 0x101ed9a9
cmp al, 0x2c
je 0x101ed9a9
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
jne 0x101ed994
test edi, edi
je 0x101edaa2
test ecx, ecx
je 0x101eda3e
mov dword [ebp - 0x110], 0
cmp edi, 0x80
jae 0x101edaa2
push edi
push edx
lea eax, [ebp - 0x84]
push eax
call fcn.101fcde0
lea eax, [ebp - 0x84]
mov byte [ebp + edi - 0x84], 0
push 0x2f
push eax
call fcn.101fdb70
mov edi, eax
add esp, 0x14
test edi, edi
je 0x101eda0d
lea ecx, [edi + 1]
push ecx
call fcn.10204d08
add esp, 4
mov byte [edi], 0
jmp 0x101eda13
mov eax, dword [ebp - 0x110]
cmp dword [ebp - 0x10c], 2
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x108]
jne 0x101eda34
call fcn.101edb70
add esp, 0xc
jmp 0x101eda9a
call fcn.101edad0
add esp, 0xc
jmp 0x101eda9a
cmp byte [edx + edi - 1], 0x2e
lea eax, [edi - 1]
cmovne eax, edi
mov ecx, eax
test eax, eax
je 0x101eda58
cmp byte [edx], 0x2e
jne 0x101eda58
inc edx
lea ecx, [eax - 1]
cmp ecx, ebx
jne 0x101eda73
push ebx
push dword [ebp - 0x108]
push edx
call sym.gcm32.dll_curl_strnequal
add esp, 0xc
test eax, eax
setne al
jmp 0x101eda9a
jae 0x101edaa2
mov eax, dword [ebp - 0x108]
sub eax, ecx
add eax, ebx
cmp byte [eax - 1], 0x2e
jne 0x101eda98
push ecx
push eax
push edx
call sym.gcm32.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x101eda98
mov al, 1
jmp 0x101eda9a
xor al, al
test al, al
jne 0x101ed8bd
cmp byte [esi], 0x2c
jne 0x101edaad
inc esi
cmp byte [esi], 0x2c
je 0x101edaa7
cmp byte [esi], 0
je 0x101edabd
mov ecx, dword [ebp - 0x10c]
jmp 0x101ed970
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret