Function at 0x1001ecb0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1006d860]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
lea edx, [ecx + 1]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], 0
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x24], eax
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001ecf0
sub ecx, edx
cmp ecx, 7
jb 0x1001ed53
lea eax, [ebx + ecx]
mov dword [ebp - 0x20], eax
add eax, 0xfffffffa
push 0x10073568
push eax
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
jne 0x1001ed31
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff9
push 0x10073570
push eax
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
je 0x1001ed53
push 0x10073578
push edi
call fcn.10010750
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x259], 0
cmp dword [edi + 0x84], 0
je 0x1001ed7c
push 2
push 3
push edi
call fcn.1003e610
add esp, 0xc
push esi
push ebx
push edi
call fcn.1001f280
add esp, 0xc
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1001edaa
push ebx
push 0x100735a0
push edi
call fcn.10010810
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x1c], 0
inc dword [eax + 0x10]
cmp dword [edi + 0x84], 0
je 0x1001edbe
push 3
push edi
call fcn.1003e650
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x1001ef21
cmp dword [edi + 0x63c], 0
mov dword [ebp - 0x20], 0
je 0x1001ee0e
push 1
push edi
call fcn.10030490
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.10030490
add esp, 0x1c
test esi, esi
jne 0x1001ed3f
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1001ee4d
push esi
push ebx
lea eax, [ebp - 0x30]
push eax
push 2
call fcn.1000d6f0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1001ef3f
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1001ee68
push esi
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x17
jmp 0x1001ee27
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x3af], 2
jne 0x1001ee85
push edi
call fcn.1001e6c0
add esp, 4
test al, al
je 0x1001ed3f
push 0x1006ff50
push ebx
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
jne 0x1001eeec
push 0x100735c4
push ebx
call fcn.1001f860
add esp, 8
test al, al
jne 0x1001eeec
cmp byte [ebp + 0x14], al
je 0x1001eec7
cmp byte [edi + 0x69e], al
je 0x1001eec7
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push edi
call fcn.10011790
add esp, 0x10
jmp 0x1001eef6
push dword [ebp - 0x24]
push edi
call fcn.1001f8b0
add esp, 8
test al, al
je 0x1001ed3f
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push edi
call fcn.1001e310
add esp, 0x10
jmp 0x1001eef6
push ebx
push esi
call fcn.1001f440
add esp, 8
mov esi, eax
test esi, esi
jne 0x1001ef3f
cmp dword [ebp - 0x20], eax
je 0x1001ef21
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.1001efa0
add esp, 8
test eax, eax
jne 0x1001ed3f
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
sete cl
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
pop edi
mov dword [eax], ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10052617
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x84], 0
je 0x1001ef55
push 2
push 3
push edi
call fcn.1003e610
add esp, 0xc
push dword [ebp - 0x2c]
push 0
push ebx
push esi
push edi
call fcn.1001e320
add esp, 0x14
mov dword [ebp - 0x18], eax
cmp dword [edi + 0x84], 0
je 0x1001ef7f
push 3
push edi
call fcn.1003e650
mov eax, dword [ebp - 0x18]
add esp, 8
test eax, eax
jne 0x1001ef8e
push esi
call fcn.1000d3e0
add esp, 4
jmp 0x1001ef21
push eax
push edi
xor esi, esi
call fcn.1001f680
add esp, 8
jmp 0x1001ef24