Function at 0x10032750
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10c
push ebx
push edi
mov edi, dword [ebp + 8]
mov byte [eax], 0
test edi, edi
je 0x100329bc
mov bl, byte [edi]
test bl, bl
je 0x100329bc
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100329b3
cmp byte [esi], 0
je 0x100329b3
xor eax, eax
mov ecx, esi
mov dword [ebp - 4], eax
mov eax, 0x1006e45c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100327b7
test dl, dl
je 0x100327b3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100327b7
add eax, 2
add ecx, 2
test dl, dl
jne 0x10032797
xor eax, eax
jmp 0x100327bc
sbb eax, eax
or eax, 1
test eax, eax
je 0x100329aa
cmp bl, 0x5b
jne 0x1003281c
push 0x5d
push edi
call fcn.10051a80
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100329b3
inc edi
sub ebx, edi
mov dword [ebp - 8], ebx
cmp ebx, 0x80
jae 0x100329b3
push ebx
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.10050b30
lea edx, [ebp - 0x10c]
mov byte [ebp + ebx - 0x10c], 0
mov eax, 2
mov dword [ebp + 8], edx
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x10032851
mov ebx, edi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10032821
lea eax, [ebp - 0xc]
sub ebx, ecx
push eax
push edi
push 2
mov dword [ebp - 8], ebx
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x10032844
mov dword [ebp - 4], eax
jmp 0x1003284f
cmp byte [ebx + edi - 1], 0x2e
jne 0x1003284f
dec ebx
mov dword [ebp - 8], ebx
mov edx, edi
cmp byte [esi], 0
je 0x100329b3
lea ebx, [ebx]
mov al, byte [esi]
xor edi, edi
test al, al
je 0x10032878
cmp al, 0x20
je 0x10032870
cmp al, 9
jne 0x10032878
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10032868
mov al, byte [esi]
mov ecx, esi
test al, al
je 0x10032975
cmp al, 0x20
je 0x10032899
cmp al, 9
je 0x10032899
cmp al, 0x2c
je 0x10032899
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
jne 0x10032884
test edi, edi
je 0x10032975
mov eax, dword [ebp - 4]
test eax, eax
je 0x10032922
dec eax
cmp eax, 1
ja 0x10032975
xor ebx, ebx
cmp edi, 0x80
jae 0x10032975
push edi
push ecx
lea eax, [ebp - 0x8c]
push eax
call fcn.10050b30
lea eax, [ebp - 0x8c]
mov byte [ebp + edi - 0x8c], bl
push 0x2f
push eax
call fcn.10051a80
mov edi, eax
add esp, 0x14
test edi, edi
je 0x100328fd
lea ecx, [edi + 1]
push ecx
call fcn.100541d5
add esp, 4
mov byte [edi], 0
mov ebx, eax
cmp dword [ebp - 4], 2
lea eax, [ebp - 0x8c]
push ebx
push eax
push dword [ebp + 8]
jne 0x10032918
call fcn.10032a70
add esp, 0xc
jmp 0x10032971
call fcn.100329d0
add esp, 0xc
jmp 0x10032971
cmp byte [ecx + edi - 1], 0x2e
jne 0x1003292a
dec edi
test edi, edi
je 0x10032935
cmp byte [ecx], 0x2e
jne 0x10032935
inc ecx
dec edi
cmp edi, ebx
jne 0x10032946
push ebx
push edx
push ecx
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
jmp 0x1003296c
jae 0x10032975
mov eax, ebx
sub eax, edi
add eax, edx
cmp byte [eax - 1], 0x2e
jne 0x1003296a
push edi
push eax
push ecx
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x1003296a
mov eax, 1
jmp 0x1003296c
xor eax, eax
test eax, eax
setne al
test al, al
jne 0x100329aa
mov al, byte [esi]
cmp al, 0x20
je 0x1003297f
cmp al, 9
jne 0x10032982
inc esi
jmp 0x10032975
mov al, byte [esi]
test al, al
je 0x1003299a
cmp al, 0x2c
je 0x10032994
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x1003299a
inc esi
cmp byte [esi], 0x2c
je 0x10032994
cmp byte [esi], 0
je 0x100329b3
mov ebx, dword [ebp - 8]
mov edx, dword [ebp + 8]
jmp 0x10032860
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret