Function at 0x5d0f70
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x130
push ebx
push esi
mov esi, dword [ebp + 8]
mov byte [eax], 0
push edi
test esi, esi
je 0x5d1337
mov bl, byte [esi]
test bl, bl
je 0x5d1337
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x5d1337
cmp byte [edi], 0
je 0x5d1337
xor eax, eax
mov ecx, edi
mov dword [ebp - 8], eax
mov eax, 0x765ae8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5d0fd7
test dl, dl
je 0x5d0fd3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5d0fd7
add eax, 2
add ecx, 2
test dl, dl
jne 0x5d0fb7
xor eax, eax
jmp 0x5d0fdc
sbb eax, eax
or eax, 1
test eax, eax
je 0x5d1297
cmp bl, 0x5b
jne 0x5d103b
push 0x5d
push esi
call fcn.00701510
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x5d1337
inc esi
sub ebx, esi
mov dword [ebp - 0x10], ebx
cmp ebx, 0x80
jae 0x5d1337
push ebx
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.00700d60
lea eax, [ebp - 0x130]
mov byte [ebp + ebx - 0x130], 0
add esp, 0xc
mov dword [ebp + 8], eax
mov dword [ebp - 8], 2
jmp 0x5d106e
mov ebx, esi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x5d1040
lea eax, [ebp - 0xc]
sub ebx, ecx
push eax
push esi
push 2
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x5d1063
mov dword [ebp - 8], eax
jmp 0x5d106e
cmp byte [ebx + esi - 1], 0x2e
jne 0x5d106e
dec ebx
mov dword [ebp - 0x10], ebx
mov al, byte [edi]
test al, al
je 0x5d1337
xor esi, esi
nop word [eax + eax]
cmp al, 0x20
je 0x5d108a
mov cl, al
cmp al, 9
jne 0x5d1094
mov al, byte [edi + 1]
inc edi
mov cl, al
test al, al
jne 0x5d1080
mov edx, edi
test cl, cl
je 0x5d1300
nop
cmp cl, 0x20
je 0x5d10b8
cmp cl, 9
je 0x5d10b8
cmp cl, 0x2c
je 0x5d10b8
mov cl, byte [edi + 1]
inc edi
inc esi
test cl, cl
jne 0x5d10a0
test esi, esi
je 0x5d1300
mov eax, dword [ebp - 8]
sub eax, 0
je 0x5d12ab
sub eax, 1
je 0x5d10da
sub eax, 1
jne 0x5d1300
xor ebx, ebx
cmp esi, 0x80
jae 0x5d1300
push esi
push edx
lea eax, [ebp - 0xb0]
push eax
call fcn.00700d60
lea eax, [ebp - 0xb0]
mov byte [ebp + esi - 0xb0], bl
push 0x2f
push eax
call fcn.00701510
mov esi, eax
add esp, 0x14
test esi, esi
je 0x5d1125
lea ecx, [esi + 1]
push ecx
call fcn.00710f94
add esp, 4
mov byte [esi], 0
mov ebx, eax
cmp dword [ebp - 8], 2
jne 0x5d121f
test ebx, ebx
mov eax, 0x80
cmove ebx, eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
mov esi, ebx
and ebx, 7
shr esi, 3
push 0x17
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x5d1300
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xb0]
push eax
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x5d1300
cmp esi, 0x10
ja 0x5d1300
jne 0x5d118d
test ebx, ebx
jne 0x5d1300
jmp 0x5d1191
test esi, esi
je 0x5d11f6
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x20]
sub esi, 4
jb 0x5d11b1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5d11b6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x5d11a0
cmp esi, 0xfffffffc
je 0x5d11f3
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x5d1300
cmp esi, 0xfffffffd
je 0x5d11f3
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x5d1300
cmp esi, 0xfffffffe
je 0x5d11f3
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x5d1300
cmp esi, 0xffffffff
je 0x5d11f3
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x5d1300
mov esi, dword [ebp - 4]
test ebx, ebx
je 0x5d1297
movzx eax, byte [ebp + esi - 0x30]
mov ecx, 8
movzx edx, byte [ebp + esi - 0x20]
sub ecx, ebx
xor edx, eax
mov eax, 0xff
shl eax, cl
test eax, edx
jmp 0x5d12fc
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp ebx, 0x20
ja 0x5d1300
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
call esi
cmp eax, 1
jne 0x5d1300
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xb0]
push eax
push 2
call esi
cmp eax, 1
jne 0x5d1300
test ebx, ebx
je 0x5d12a0
cmp ebx, 0x20
je 0x5d12a0
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp - 0xc]
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 0x5d1300
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
sete al
jmp 0x5d12fa
cmp byte [edx + esi - 1], 0x2e
jne 0x5d12b7
add esi, 0xffffffff
je 0x5d12be
cmp byte [edx], 0x2e
jne 0x5d12be
inc edx
dec esi
cmp esi, ebx
jne 0x5d12d6
push ebx
push dword [ebp + 8]
push edx
call fcn.005be0c0
add esp, 0xc
test eax, eax
setne al
jmp 0x5d12fa
jae 0x5d1300
mov eax, ebx
sub eax, esi
add eax, dword [ebp + 8]
cmp byte [eax - 1], 0x2e
jne 0x5d12f8
push esi
push eax
push edx
call fcn.005be0c0
add esp, 0xc
test eax, eax
je 0x5d12f8
mov al, 1
jmp 0x5d12fa
xor al, al
test al, al
jne 0x5d1297
nop
mov al, byte [edi]
cmp al, 0x20
je 0x5d130a
cmp al, 9
jne 0x5d130d
inc edi
jmp 0x5d1300
test al, al
je 0x5d131f
cmp al, 0x2c
je 0x5d1323
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov al, byte [edi]
jmp 0x5d132b
cmp al, 0x2c
jne 0x5d132b
mov al, byte [edi + 1]
inc edi
cmp al, 0x2c
je 0x5d1323
test al, al
je 0x5d1337
mov ebx, dword [ebp - 0x10]
jmp 0x5d1078
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret