Function at 0x5d4de0
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 0x5d51a7
mov bl, byte [esi]
test bl, bl
je 0x5d51a7
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x5d51a7
cmp byte [edi], 0
je 0x5d51a7
xor eax, eax
mov ecx, edi
mov dword [ebp - 8], eax
mov eax, 0x76aed8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5d4e47
test dl, dl
je 0x5d4e43
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5d4e47
add eax, 2
add ecx, 2
test dl, dl
jne 0x5d4e27
xor eax, eax
jmp 0x5d4e4c
sbb eax, eax
or eax, 1
test eax, eax
je 0x5d5107
cmp bl, 0x5b
jne 0x5d4eab
push 0x5d
push esi
call fcn.007053e0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x5d51a7
inc esi
sub ebx, esi
mov dword [ebp - 0x10], ebx
cmp ebx, 0x80
jae 0x5d51a7
push ebx
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.00704c30
lea eax, [ebp - 0x130]
mov byte [ebp + ebx - 0x130], 0
add esp, 0xc
mov dword [ebp + 8], eax
mov dword [ebp - 8], 2
jmp 0x5d4ede
mov ebx, esi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x5d4eb0
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 0x5d4ed3
mov dword [ebp - 8], eax
jmp 0x5d4ede
cmp byte [ebx + esi - 1], 0x2e
jne 0x5d4ede
dec ebx
mov dword [ebp - 0x10], ebx
mov al, byte [edi]
test al, al
je 0x5d51a7
xor esi, esi
nop word [eax + eax]
cmp al, 0x20
je 0x5d4efa
mov cl, al
cmp al, 9
jne 0x5d4f04
mov al, byte [edi + 1]
inc edi
mov cl, al
test al, al
jne 0x5d4ef0
mov edx, edi
test cl, cl
je 0x5d5170
nop
cmp cl, 0x20
je 0x5d4f28
cmp cl, 9
je 0x5d4f28
cmp cl, 0x2c
je 0x5d4f28
mov cl, byte [edi + 1]
inc edi
inc esi
test cl, cl
jne 0x5d4f10
test esi, esi
je 0x5d5170
mov eax, dword [ebp - 8]
sub eax, 0
je 0x5d511b
sub eax, 1
je 0x5d4f4a
sub eax, 1
jne 0x5d5170
xor ebx, ebx
cmp esi, 0x80
jae 0x5d5170
push esi
push edx
lea eax, [ebp - 0xb0]
push eax
call fcn.00704c30
lea eax, [ebp - 0xb0]
mov byte [ebp + esi - 0xb0], bl
push 0x2f
push eax
call fcn.007053e0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x5d4f95
lea ecx, [esi + 1]
push ecx
call fcn.007156a0
add esp, 4
mov byte [esi], 0
mov ebx, eax
cmp dword [ebp - 8], 2
jne 0x5d508f
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 0x5d5170
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 0x5d5170
cmp esi, 0x10
ja 0x5d5170
jne 0x5d4ffd
test ebx, ebx
jne 0x5d5170
jmp 0x5d5001
test esi, esi
je 0x5d5066
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x20]
sub esi, 4
jb 0x5d5021
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5d5026
add ecx, 4
add edx, 4
sub esi, 4
jae 0x5d5010
cmp esi, 0xfffffffc
je 0x5d5063
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x5d5170
cmp esi, 0xfffffffd
je 0x5d5063
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x5d5170
cmp esi, 0xfffffffe
je 0x5d5063
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x5d5170
cmp esi, 0xffffffff
je 0x5d5063
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x5d5170
mov esi, dword [ebp - 4]
test ebx, ebx
je 0x5d5107
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 0x5d516c
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp ebx, 0x20
ja 0x5d5170
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 0x5d5170
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xb0]
push eax
push 2
call esi
cmp eax, 1
jne 0x5d5170
test ebx, ebx
je 0x5d5110
cmp ebx, 0x20
je 0x5d5110
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 0x5d5170
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 0x5d516a
cmp byte [edx + esi - 1], 0x2e
jne 0x5d5127
add esi, 0xffffffff
je 0x5d512e
cmp byte [edx], 0x2e
jne 0x5d512e
inc edx
dec esi
cmp esi, ebx
jne 0x5d5146
push ebx
push dword [ebp + 8]
push edx
call fcn.005c1f30
add esp, 0xc
test eax, eax
setne al
jmp 0x5d516a
jae 0x5d5170
mov eax, ebx
sub eax, esi
add eax, dword [ebp + 8]
cmp byte [eax - 1], 0x2e
jne 0x5d5168
push esi
push eax
push edx
call fcn.005c1f30
add esp, 0xc
test eax, eax
je 0x5d5168
mov al, 1
jmp 0x5d516a
xor al, al
test al, al
jne 0x5d5107
nop
mov al, byte [edi]
cmp al, 0x20
je 0x5d517a
cmp al, 9
jne 0x5d517d
inc edi
jmp 0x5d5170
test al, al
je 0x5d518f
cmp al, 0x2c
je 0x5d5193
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov al, byte [edi]
jmp 0x5d519b
cmp al, 0x2c
jne 0x5d519b
mov al, byte [edi + 1]
inc edi
cmp al, 0x2c
je 0x5d5193
test al, al
je 0x5d51a7
mov ebx, dword [ebp - 0x10]
jmp 0x5d4ee8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret