Function at 0x140133340
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1b8
mov rax, qword [0x1401e7890]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x1d0]
mov byte [rax], 0
cmp qword [rsp + 0x1c0], 0
je 0x140133397
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x1c0]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x14013339e
xor al, al
jmp 0x1401338d9
cmp qword [rsp + 0x1c8], 0
je 0x1401338d7
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x1c8]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x1401338d7
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x40], 0
mov rdx, qword [rsp + 0x1c8]
lea rcx, [0x1401e3b5c]
call fcn.140158216
test eax, eax
jne 0x1401333fe
mov al, 1
jmp 0x1401338d9
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x1c0]
movsx eax, byte [rcx + rax]
cmp eax, 0x5b
jne 0x1401334e5
mov edx, 0x5d
mov rcx, qword [rsp + 0x1c0]
call sub.VCRUNTIME140.dll_strchr
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140133442
xor al, al
jmp 0x1401338d9
mov rax, qword [rsp + 0x1c0]
inc rax
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0x80
jb 0x14013347f
xor al, al
jmp 0x1401338d9
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x1c0]
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0x80
jae 0x1401334b6
jmp 0x1401334bb
call fcn.1401577ac
mov rax, qword [rsp + 0x80]
mov byte [rsp + rax + 0xa0], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x1c0], rax
mov dword [rsp + 0x40], 2
jmp 0x14013354a
mov rcx, qword [rsp + 0x1c0]
call fcn.140158210
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x90]
mov rdx, qword [rsp + 0x1c0]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x140133521
mov dword [rsp + 0x40], 1
jmp 0x14013354a
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x1c0]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax - 1]
cmp eax, 0x2e
jne 0x14013354a
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
test eax, eax
je 0x1401338d7
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
test eax, eax
je 0x14013359d
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x20
je 0x14013358e
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 9
jne 0x14013359d
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x140133568
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
test eax, eax
je 0x1401335f6
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x20
je 0x1401335f6
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 9
je 0x1401335f6
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x2c
je 0x1401335f6
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
jmp 0x1401335a7
cmp qword [rsp + 0x30], 0
je 0x140133864
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x14013362c
cmp dword [rsp + 0x44], 1
je 0x140133767
cmp dword [rsp + 0x44], 2
je 0x140133767
jmp 0x140133857
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax - 1]
cmp eax, 0x2e
jne 0x140133652
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140133681
mov rax, qword [rsp + 0x50]
movsx eax, byte [rax]
cmp eax, 0x2e
jne 0x140133681
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x30], rax
jne 0x1401336c8
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x50]
call fcn.1400e8df0
test eax, eax
jne 0x1401336b2
mov dword [rsp + 0x58], 0
jmp 0x1401336ba
mov dword [rsp + 0x58], 1
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x20], al
jmp 0x140133762
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x30], rax
jae 0x140133762
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x1c0]
movsx eax, byte [rcx + rax - 1]
cmp eax, 0x2e
jne 0x140133738
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x1c0]
add rcx, rax
mov rax, rcx
mov r8, qword [rsp + 0x30]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.1400e8df0
test eax, eax
je 0x140133738
mov dword [rsp + 0x5c], 1
jmp 0x140133740
mov dword [rsp + 0x5c], 0
cmp dword [rsp + 0x5c], 0
jne 0x140133751
mov dword [rsp + 0x60], 0
jmp 0x140133759
mov dword [rsp + 0x60], 1
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x20], al
jmp 0x140133857
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x30], 0x80
jb 0x140133789
jmp 0x140133857
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x120]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0x80
jae 0x1401337bd
jmp 0x1401337c2
call fcn.1401577ac
mov rax, qword [rsp + 0x88]
mov byte [rsp + rax + 0x120], 0
lea rax, [rsp + 0x120]
mov qword [rsp + 0x68], rax
mov edx, 0x2f
mov rcx, qword [rsp + 0x68]
call sub.VCRUNTIME140.dll_strchr
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140133818
mov rax, qword [rsp + 0x70]
inc rax
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x70]
mov byte [rax], 0
cmp dword [rsp + 0x40], 2
jne 0x14013383c
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x1c0]
call fcn.140133a20
mov byte [rsp + 0x20], al
jmp 0x140133857
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x1c0]
call fcn.140133900
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140133864
mov al, 1
jmp 0x1401338d9
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x20
je 0x14013387e
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 9
jne 0x14013388d
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x140133864
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
test eax, eax
je 0x1401338b6
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x2c
je 0x1401338b6
mov rax, qword [rsp + 0x1d0]
mov byte [rax], 1
jmp 0x14013354a
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x2c
jne 0x1401338d2
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x1401338b6
jmp 0x14013354a
xor al, al
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140156eb0
add rsp, 0x1b8
ret