Function at 0x5c47c0
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 0x5c4b87
mov bl, byte [esi]
test bl, bl
je 0x5c4b87
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x5c4b87
cmp byte [edi], 0
je 0x5c4b87
xor eax, eax
mov ecx, edi
mov dword [ebp - 8], eax
mov eax, 0x755fec
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5c4827
test dl, dl
je 0x5c4823
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5c4827
add eax, 2
add ecx, 2
test dl, dl
jne 0x5c4807
xor eax, eax
jmp 0x5c482c
sbb eax, eax
or eax, 1
test eax, eax
je 0x5c4ae7
cmp bl, 0x5b
jne 0x5c488b
push 0x5d
push esi
call fcn.006f4d80
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x5c4b87
inc esi
sub ebx, esi
mov dword [ebp - 0x10], ebx
cmp ebx, 0x80
jae 0x5c4b87
push ebx
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.006f45d0
lea eax, [ebp - 0x130]
mov byte [ebp + ebx - 0x130], 0
add esp, 0xc
mov dword [ebp + 8], eax
mov dword [ebp - 8], 2
jmp 0x5c48be
mov ebx, esi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x5c4890
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 0x5c48b3
mov dword [ebp - 8], eax
jmp 0x5c48be
cmp byte [ebx + esi - 1], 0x2e
jne 0x5c48be
dec ebx
mov dword [ebp - 0x10], ebx
mov al, byte [edi]
test al, al
je 0x5c4b87
xor esi, esi
nop word [eax + eax]
cmp al, 0x20
je 0x5c48da
mov cl, al
cmp al, 9
jne 0x5c48e4
mov al, byte [edi + 1]
inc edi
mov cl, al
test al, al
jne 0x5c48d0
mov edx, edi
test cl, cl
je 0x5c4b50
nop
cmp cl, 0x20
je 0x5c4908
cmp cl, 9
je 0x5c4908
cmp cl, 0x2c
je 0x5c4908
mov cl, byte [edi + 1]
inc edi
inc esi
test cl, cl
jne 0x5c48f0
test esi, esi
je 0x5c4b50
mov eax, dword [ebp - 8]
sub eax, 0
je 0x5c4afb
sub eax, 1
je 0x5c492a
sub eax, 1
jne 0x5c4b50
xor ebx, ebx
cmp esi, 0x80
jae 0x5c4b50
push esi
push edx
lea eax, [ebp - 0xb0]
push eax
call fcn.006f45d0
lea eax, [ebp - 0xb0]
mov byte [ebp + esi - 0xb0], bl
push 0x2f
push eax
call fcn.006f4d80
mov esi, eax
add esp, 0x14
test esi, esi
je 0x5c4975
lea ecx, [esi + 1]
push ecx
call fcn.00704714
add esp, 4
mov byte [esi], 0
mov ebx, eax
cmp dword [ebp - 8], 2
jne 0x5c4a6f
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 0x5c4b50
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 0x5c4b50
cmp esi, 0x10
ja 0x5c4b50
jne 0x5c49dd
test ebx, ebx
jne 0x5c4b50
jmp 0x5c49e1
test esi, esi
je 0x5c4a46
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x20]
sub esi, 4
jb 0x5c4a01
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5c4a06
add ecx, 4
add edx, 4
sub esi, 4
jae 0x5c49f0
cmp esi, 0xfffffffc
je 0x5c4a43
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x5c4b50
cmp esi, 0xfffffffd
je 0x5c4a43
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x5c4b50
cmp esi, 0xfffffffe
je 0x5c4a43
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x5c4b50
cmp esi, 0xffffffff
je 0x5c4a43
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x5c4b50
mov esi, dword [ebp - 4]
test ebx, ebx
je 0x5c4ae7
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 0x5c4b4c
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp ebx, 0x20
ja 0x5c4b50
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 0x5c4b50
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xb0]
push eax
push 2
call esi
cmp eax, 1
jne 0x5c4b50
test ebx, ebx
je 0x5c4af0
cmp ebx, 0x20
je 0x5c4af0
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 0x5c4b50
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 0x5c4b4a
cmp byte [edx + esi - 1], 0x2e
jne 0x5c4b07
add esi, 0xffffffff
je 0x5c4b0e
cmp byte [edx], 0x2e
jne 0x5c4b0e
inc edx
dec esi
cmp esi, ebx
jne 0x5c4b26
push ebx
push dword [ebp + 8]
push edx
call fcn.005b1900
add esp, 0xc
test eax, eax
setne al
jmp 0x5c4b4a
jae 0x5c4b50
mov eax, ebx
sub eax, esi
add eax, dword [ebp + 8]
cmp byte [eax - 1], 0x2e
jne 0x5c4b48
push esi
push eax
push edx
call fcn.005b1900
add esp, 0xc
test eax, eax
je 0x5c4b48
mov al, 1
jmp 0x5c4b4a
xor al, al
test al, al
jne 0x5c4ae7
nop
mov al, byte [edi]
cmp al, 0x20
je 0x5c4b5a
cmp al, 9
jne 0x5c4b5d
inc edi
jmp 0x5c4b50
test al, al
je 0x5c4b6f
cmp al, 0x2c
je 0x5c4b73
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov al, byte [edi]
jmp 0x5c4b7b
cmp al, 0x2c
jne 0x5c4b7b
mov al, byte [edi + 1]
inc edi
cmp al, 0x2c
je 0x5c4b73
test al, al
je 0x5c4b87
mov ebx, dword [ebp - 0x10]
jmp 0x5c48c8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret