Function at 0x1001dca0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea edx, [ecx + 1]
mov dword [ebp - 8], 0xffffffff
mov eax, dword [edi + 0x18]
mov dword [ebp + 8], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001dcc8
sub ecx, edx
cmp ecx, 7
jb 0x1001dd1b
lea esi, [ecx + ebx]
lea eax, [esi - 6]
push 0x100715c8
push eax
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
jne 0x1001dd03
lea eax, [esi - 7]
push 0x100715d0
push eax
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
je 0x1001dd1b
push 0x100715d8
push edi
call fcn.1000ff00
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x259], 0
cmp dword [edi + 0x84], 0
je 0x1001dd44
push 2
push 3
push edi
call fcn.1003cd20
add esp, 0xc
mov esi, dword [ebp + 0x10]
push esi
push ebx
push edi
call fcn.1001e260
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
je 0x1001dd75
push ebx
push 0x10071600
push edi
call fcn.1000ffa0
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 8], 0
inc dword [eax + 0x10]
cmp dword [edi + 0x84], 0
je 0x1001dd89
push 3
push edi
call fcn.1003cd60
add esp, 8
cmp dword [ebp - 4], 0
jne 0x1001dee2
cmp dword [edi + 0x63c], 0
mov dword [ebp - 0xc], 0
je 0x1001ddd9
push 1
push edi
call fcn.1002ec50
push dword [edi + 0x640]
mov eax, dword [edi + 0x63c]
push 0
push dword [edi + 0x928]
call eax
push 0
push edi
mov esi, eax
call fcn.1002ec50
add esp, 0x1c
test esi, esi
jne 0x1001dd11
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1001de0e
push esi
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
call fcn.1000d330
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1001def6
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1001de29
push esi
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x17
jmp 0x1001ddf2
mov eax, dword [ebp + 8]
cmp byte [eax + 0x3af], 2
jne 0x1001de46
push edi
call fcn.1001d760
add esp, 4
test al, al
je 0x1001dd11
push 0x1006dfb0
push ebx
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
jne 0x1001dead
push 0x10071624
push ebx
call fcn.1001e7e0
add esp, 8
test al, al
jne 0x1001dead
cmp byte [ebp + 0x14], al
je 0x1001de88
cmp byte [edi + 0x69e], al
je 0x1001de88
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push edi
call fcn.10010f30
add esp, 0x10
jmp 0x1001deb7
push dword [ebp + 8]
push edi
call fcn.1001e830
add esp, 8
test al, al
je 0x1001dd11
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push edi
call fcn.1001d460
add esp, 0x10
jmp 0x1001deb7
push ebx
push esi
call fcn.1001e3f0
add esp, 8
mov esi, eax
test esi, esi
jne 0x1001def6
cmp dword [ebp - 0xc], eax
je 0x1001dee2
lea eax, [ebp - 4]
push eax
push edi
call fcn.1001df80
add esp, 8
test eax, eax
jne 0x1001dd11
xor ecx, ecx
cmp dword [ebp - 4], ecx
sete cl
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x84], 0
je 0x1001df0c
push 2
push 3
push edi
call fcn.1003cd20
add esp, 0xc
push dword [ebp + 0x10]
push 0
push ebx
push esi
push edi
call fcn.1001d470
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [edi + 0x84], 0
je 0x1001df36
push 3
push edi
call fcn.1003cd60
mov eax, dword [ebp - 4]
add esp, 8
test eax, eax
jne 0x1001df57
push esi
call fcn.1000d020
mov eax, dword [ebp + 0x18]
add esp, 4
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push edi
xor esi, esi
call fcn.1001e610
mov eax, dword [ebp + 0x18]
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret