Function at 0x140047b83
Capabilities:
Convert ip address from string

Disassembly:
push rbp
sub rsp, 0x580
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x100], rsi
mov qword [rbp + 0xf8], rbx
mov qword [rbp + 0x68], rcx
mov qword [rbp + 0x70], rdx
mov qword [rbp + 0x78], r8
mov qword [rbp + 0x560], rcx
mov qword [rbp + 0x568], rdx
mov word [rbp + 0x570], r8w
mov rax, qword [0x1400e0a40]
xor rax, rbp
mov qword [rbp + 0x540], rax
mov qword [rbp + 0x80], 0
mov dword [rbp + 4], 2
mov dword [rbp + 0x260], 0
lea rax, [rbp + 0x292]
mov byte [rax], 0
lea rax, [rbp + 0x88]
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x560]
mov rdx, qword [rbp + 0x80]
mov rcx, rax
call fcn.14004e5e3
mov dword [rbp + 8], eax
mov rax, qword [rbp + 0x568]
mov edx, 0x3a
mov rcx, rax
call sub.VCRUNTIME140.dll_strchr
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
test rax, rax
je 0x140047c4c
mov dword [rbp + 4], 0x17
mov rax, qword [rbp + 0x80]
mov edx, dword [rbp + 4]
mov ecx, 2
mov ebx, 0
mov dword [rbp + 0xb0], ecx
mov rcx, rax
mov eax, dword [rbp + 0xb0]
mov r8d, eax
mov r9d, ebx
call fcn.14004e742
mov dword [rbp + 0xc], eax
mov eax, dword [rbp + 0xc]
cmp eax, 0xffffffff
jne 0x140047cc4
mov eax, 0xffffffff
mov dword [rbp + 0x50], eax
mov rax, qword [rbp + 0x540]
mov qword [rbp + 0x540], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x50]
mov rbx, qword [rbp + 0xf8]
mov rsi, qword [rbp + 0x100]
lea rsp, [rbp + 0x550]
pop rbp
ret
mov eax, dword [rbp + 4]
cmp eax, 2
jne 0x140047d50
lea rax, [rbp + 0x208]
mov edx, 0
mov ecx, 0x10
mov qword [rbp + 0xb8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xb8]
mov r8, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0xa0], rax
mov eax, dword [rbp + 4]
mov word [rbp + 0x208], ax
mov rax, qword [rbp + 0x568]
mov rdx, qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, rax
call rdx
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
mov dword [rbp + 0x20c], eax
movzx eax, word [rbp + 0x570]
mov rdx, qword [sym.imp.WS2_32.dll_htons]
mov ecx, eax
call rdx
mov word [rbp], ax
movzx eax, word [rbp]
mov word [rbp + 0x20a], ax
jmp 0x140047ddc
lea rax, [rbp + 0x218]
mov edx, 0
mov ecx, 0x1c
mov qword [rbp + 0xc0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xc0]
mov r8, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0xa8], rax
mov eax, dword [rbp + 4]
mov word [rbp + 0x218], ax
mov eax, dword [rbp + 4]
mov rdx, qword [rbp + 0x568]
lea rcx, [rbp + 0x220]
mov rbx, qword [sym.imp.WS2_32.dll_inet_pton]
mov qword [rbp + 0xc8], rcx
mov ecx, eax
mov rax, qword [rbp + 0xc8]
mov r8, rax
call rbx
mov dword [rbp + 0x14], eax
movzx eax, word [rbp + 0x570]
mov rdx, qword [sym.imp.WS2_32.dll_htons]
mov ecx, eax
call rdx
mov word [rbp + 2], ax
movzx eax, word [rbp + 2]
mov word [rbp + 0x21a], ax
mov dword [rbp + 0x18], 0
mov eax, dword [rbp + 0x18]
cmp eax, 0x64
jl 0x140047dfd
jmp 0x14004815e
mov eax, 1
add eax, dword [rbp + 0x18]
mov dword [rbp + 0x18], eax
jmp 0x140047de3
mov dword [rbp + 0x1c], 0
mov dword [rbp + 0x20], 0
mov dword [rbp + 0x24], 0x2710
mov eax, dword [rbp + 4]
cmp eax, 2
jne 0x140047e6b
mov rax, qword [rbp + 0x80]
lea rdx, str.quit
mov ecx, 4
mov ebx, 0
lea rsi, [rbp + 0x208]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], 0x10
mov dword [rbp + 0xd0], ecx
mov rcx, rax
mov eax, dword [rbp + 0xd0]
mov r8d, eax
mov r9d, ebx
call fcn.14004ee7a
mov dword [rbp + 0x2c], eax
mov eax, dword [rbp + 0x2c]
mov dword [rbp + 0x34], eax
jmp 0x140047eba
mov rax, qword [rbp + 0x80]
lea rdx, str.quit
mov ecx, 4
mov ebx, 0
lea rsi, [rbp + 0x218]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], 0x1c
mov dword [rbp + 0xd8], ecx
mov rcx, rax
mov eax, dword [rbp + 0xd8]
mov r8d, eax
mov r9d, ebx
call fcn.14004ee7a
mov dword [rbp + 0x30], eax
mov eax, dword [rbp + 0x30]
mov dword [rbp + 0x34], eax
mov eax, dword [rbp + 0x34]
test eax, eax
jge 0x140047f00
mov eax, 0xffffffff
mov dword [rbp + 0x54], eax
mov rax, qword [rbp + 0x540]
mov qword [rbp + 0x540], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x54]
mov rbx, qword [rbp + 0xf8]
mov rsi, qword [rbp + 0x100]
lea rsp, [rbp + 0x550]
pop rbp
ret
mov eax, 0
cmp eax, 1
je 0x140047df0
mov dword [rbp + 0x338], 0
mov dword [rbp + 0x38], 0
mov eax, dword [rbp + 0x38]
mov edx, dword [rbp + 0x338]
cmp eax, edx
jae 0x140047f5c
lea rax, [rbp + 0x340]
mov edx, dword [rbp + 0x38]
imul rdx, rdx, 8
add rax, rdx
mov rax, qword [rax]
mov rdx, qword [rbp + 0x80]
mov rdx, qword [rdx]
cmp rax, rdx
je 0x140047f5c
mov eax, 1
add eax, dword [rbp + 0x38]
mov dword [rbp + 0x38], eax
jmp 0x140047f1f
mov eax, dword [rbp + 0x38]
mov edx, dword [rbp + 0x338]
cmp eax, edx
jne 0x140047fa3
mov eax, dword [rbp + 0x338]
cmp eax, 0x40
jae 0x140047fa3
mov rax, qword [rbp + 0x80]
lea rdx, [rbp + 0x340]
mov ecx, dword [rbp + 0x38]
imul rcx, rcx, 8
add rdx, rcx
mov rax, qword [rax]
mov qword [rdx], rax
mov eax, 1
add eax, dword [rbp + 0x338]
mov dword [rbp + 0x338], eax
mov eax, 0
test eax, eax
jne 0x140047f18
mov rax, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x80]
mov edx, dword [rdx]
inc edx
lea rcx, [rbp + 0x338]
mov ebx, 0
mov qword [rsp + 0x20], 0
lea rsi, [rbp + 0x20]
mov qword [rsp + 0x28], rsi
mov qword [rbp + 0xe0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xe0]
mov r8, rax
mov r9, rbx
call fcn.14004f683
mov dword [rbp + 0x3c], eax
mov eax, dword [rbp + 0x3c]
mov dword [rbp + 0x40], eax
mov eax, dword [rbp + 0x40]
mov dword [rbp + 0x1c], eax
mov eax, dword [rbp + 0x40]
test eax, eax
jge 0x140048051
mov eax, 0xffffffff
mov dword [rbp + 0x58], eax
mov rax, qword [rbp + 0x540]
mov qword [rbp + 0x540], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x58]
mov rbx, qword [rbp + 0xf8]
mov rsi, qword [rbp + 0x100]
lea rsp, [rbp + 0x550]
pop rbp
ret
mov eax, dword [rbp + 0x1c]
test eax, eax
je 0x140047df0
mov eax, dword [rbp + 4]
cmp eax, 2
jne 0x1400480bd
mov dword [rbp + 0x44], 0x10
mov rax, qword [rbp + 0x80]
lea rdx, [rbp + 0x108]
mov ecx, 0x100
mov ebx, 0
lea rsi, [rbp + 0x234]
mov qword [rsp + 0x20], rsi
lea rsi, [rbp + 0x44]
mov qword [rsp + 0x28], rsi
mov dword [rbp + 0xe8], ecx
mov rcx, rax
mov eax, dword [rbp + 0xe8]
mov r8d, eax
mov r9d, ebx
call fcn.14004ed66
mov dword [rbp + 0x48], eax
mov eax, dword [rbp + 0x48]
mov dword [rbp + 0x34], eax
jmp 0x140048114
mov dword [rbp + 0x44], 0x1c
mov rax, qword [rbp + 0x80]
lea rdx, [rbp + 0x108]
mov ecx, 0x100
mov ebx, 0
lea rsi, [rbp + 0x244]
mov qword [rsp + 0x20], rsi
lea rsi, [rbp + 0x44]
mov qword [rsp + 0x28], rsi
mov dword [rbp + 0xf0], ecx
mov rcx, rax
mov eax, dword [rbp + 0xf0]
mov r8d, eax
mov r9d, ebx
call fcn.14004ed66
mov dword [rbp + 0x4c], eax
mov eax, dword [rbp + 0x4c]
mov dword [rbp + 0x34], eax
mov eax, dword [rbp + 0x34]
test eax, eax
jge 0x140047f00
mov eax, 0xffffffff
mov dword [rbp + 0x5c], eax
mov rax, qword [rbp + 0x540]
mov qword [rbp + 0x540], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x5c]
mov rbx, qword [rbp + 0xf8]
mov rsi, qword [rbp + 0x100]
lea rsp, [rbp + 0x550]
pop rbp
ret
mov rax, qword [rbp + 0x80]
mov rcx, rax
call fcn.14004e705
mov dword [rbp + 0x28], eax
mov eax, 0
mov dword [rbp + 0x60], eax
mov rax, qword [rbp + 0x540]
mov qword [rbp + 0x540], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x60]
mov rbx, qword [rbp + 0xf8]
mov rsi, qword [rbp + 0x100]
lea rsp, [rbp + 0x550]
pop rbp
ret