Function at 0x140125720
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x140125df3
lea r15, str.127.0.0.1:34254
lea rcx, [rsp + 0x38]
mov qword [rcx], r15
mov qword [rcx + 8], 0xf
call fcn.140021d4e
mov rsi, rax
test sil, 1
je 0x14012579c
lea rcx, [rsp + 0x38]
call fcn.1400223dc
test ax, ax
je 0x14012579c
movabs rax, 0xffffffff00
and rsi, rax
shr rsi, 8
movzx eax, dx
shl rax, 0x30
shl rsi, 0x10
or rsi, rax
mov eax, 1
jmp 0x1401257a0
xor esi, esi
xor eax, eax
movzx ecx, si
or rcx, rax
je 0x140125ac2
cmp qword [rsp + 0x40], 0
jne 0x140125c88
mov r14, rsi
shr r14, 0x10
shr rsi, 0x18
xor ebp, ebp
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0xa8], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xa0], rax
mov ecx, 0x20
mov edx, 4
call fcn.14012c26e
mov word [rax], bp
mov rcx, rsi
shl rcx, 8
movzx edx, r14b
or rdx, rcx
shr rsi, 0x18
mov word [rax + 6], si
mov dword [rax + 2], edx
mov rcx, qword [rsp + 0xa0]
mov qword [rax + 8], rcx
mov ecx, dword [rsp + 0xa8]
mov dword [rax + 0x10], ecx
and dword [rax + 0x14], 0
mov dword [rax + 0x18], edi
mov word [rax + 0x1c], bx
lea rcx, [rax + 0x20]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], 1
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rcx
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xe0]
mov qword [rsp + 0x80], rdx
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rcx
mov r15, qword [rsp + 0x80]
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x100], rax
xor r14d, r14d
cmp r15, qword [rsp + 0x100]
je 0x140125b94
movzx r13d, word [r15]
cmp r13w, 2
je 0x140125b90
mov qword [rsp + 0x58], r14
mov r14d, dword [r15 + 2]
movzx r12d, word [r15 + 6]
mov edi, dword [r15 + 8]
mov rax, qword [r15 + 0xc]
mov qword [rsp + 0x108], rax
mov ebx, dword [r15 + 0x14]
mov eax, dword [r15 + 0x18]
mov dword [rsp + 0x6c], eax
movzx esi, word [r15 + 0x1c]
call fcn.14012f216
test r13w, r13w
mov ebp, 0x17
mov eax, 2
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
and dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call fcn.140223dd0
mov r10, rax
cmp rax, 0xffffffffffffffff
je 0x14012597c
shl r12, 0x20
or r12, r14
test r13w, r13w
je 0x1401259fb
movabs rax, 0xffffffff0000
and r12, rax
shr r12, 0x10
mov r8d, 0x1c
mov cx, 0x17
mov rdx, qword [rsp + 0x108]
mov r9d, dword [rsp + 0x6c]
mov rax, r12
mov r12, qword [rsp + 0x58]
jmp 0x140125a25
mov qword [rsp + 0xf0], r14
mov dword [rsp + 0x64], ebx
call qword [0x1405e8e20]
cmp eax, 0x2739
je 0x1401259a3
mov r14d, eax
cmp eax, 0x2726
jne 0x140125a87
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call fcn.140223dd0
cmp rax, 0xffffffffffffffff
je 0x140125a91
mov rcx, rax
mov edx, 1
xor r8d, r8d
mov rbp, rax
call fcn.140223d90
test eax, eax
je 0x140125a9b
mov ebx, dword [rsp + 0x64]
mov r14, qword [rsp + 0xf0]
mov r10, rbp
jmp 0x140125936
mov rsi, r12
shr rsi, 0x20
mov r8d, 0x10
mov cx, 2
xor eax, eax
xor edi, edi
mov ebx, r12d
mov r12, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xf8]
mov r9d, dword [rsp + 0x68]
rol si, 8
mov word [rsp + 0x38], cx
mov word [rsp + 0x3a], si
mov dword [rsp + 0x3c], ebx
shl rdi, 0x20
or rdi, rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x68], r9d
mov dword [rsp + 0x50], r9d
mov rcx, r10
lea rdx, [rsp + 0x38]
mov rsi, r10
call qword [0x1405e8e48]
cmp eax, 0xffffffff
jne 0x140125bb5
call fcn.14012749b
mov r14, rax
mov rcx, rsi
call qword [0x1405e8e50]
jmp 0x140125ab1
shl r14, 0x20
or r14, 2
jmp 0x140125aac
call fcn.14012749b
mov r14, rax
jmp 0x140125aac
call fcn.14007c5db
mov r14, rax
mov rcx, rbp
call qword [0x1405e8e50]
mov r12, qword [rsp + 0x58]
add r15, 0x20
mov rcx, r12
call fcn.14009ded5
jmp 0x1401258ac
lea rcx, [rsp + 0x38]
mov qword [rcx], r15
mov qword [rcx + 8], 0xf
mov edx, 0x5b
call fcn.140022132
test al, al
je 0x140125c7f
lea rsi, [rsp + 0x70]
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.140021ec7
cmp byte [rsi], 0
je 0x140125c7f
mov esi, dword [rsp + 0x71]
mov rax, qword [rsp + 0x75]
mov qword [rsp + 0xc0], rax
mov eax, dword [rsp + 0x7d]
mov dword [rsp + 0xc8], eax
lea rcx, [rsp + 0x38]
mov rbx, qword [rcx]
mov r14, qword [rcx + 8]
mov edx, 0x25
call fcn.140022132
test al, al
je 0x140125bec
mov rcx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
xor r9d, r9d
mov r11d, 0xa
mov r10, rcx
mov r12, r8
xor edi, edi
mov eax, 0
test r12, r12
je 0x140125b75
movzx ebp, byte [r10]
add ebp, 0xffffffd0
xor eax, eax
cmp ebp, 0xa
setb al
jae 0x140125b75
dec r12
inc r10
cmp eax, 1
jne 0x140125bf0
mov eax, edi
mul r11d
jo 0x140125c06
mov edi, eax
add edi, ebp
jb 0x140125c06
dec r9
jmp 0x140125b54
add r15, 0x20
lea rcx, [rsp + 0x70]
mov qword [rcx + 0x10], r15
call fcn.1401256f7
test r14, r14
lea rcx, str.could_not_resolve_to_any_addresses
cmovne rcx, r14
jmp 0x140125d4e
add r15, 0x20
lea rcx, [rsp + 0x70]
mov qword [rcx + 0x10], r15
call fcn.1401256f7
mov rcx, r12
call fcn.14009ded5
mov rcx, rsi
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [0x1405e8e50]
xor eax, eax
jmp 0x140125c16
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r10
test r9, r9
je 0x140125c06
mov eax, 1
jmp 0x140125c12
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], r8
xor eax, eax
test eax, eax
jne 0x140125c20
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], r14
test eax, eax
cmove edi, eax
lea rcx, [rsp + 0x38]
mov edx, 0x5d
call fcn.140022132
test al, al
je 0x140125c7f
lea rcx, [rsp + 0x38]
call fcn.1400223dc
test ax, ax
je 0x140125c7f
mov eax, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0xb0], rcx
mov dword [rsp + 0xb8], eax
cmp qword [rsp + 0x40], 0
jne 0x140125c88
mov ebx, edx
shl rsi, 8
mov bp, 1
xor r14d, r14d
jmp 0x1401257c5
mov qword [rsp + 0x40], 0xf
lea rsi, [rsp + 0x98]
mov qword [rsi - 0x28], r15
mov edi, 0xf
mov qword [rsi - 0x20], rdi
and qword [rsi - 0x18], 0
mov qword [rsi - 0x10], rdi
mov qword [rsi - 8], 1
movabs rax, 0x3a0000003a
mov qword [rsi], rax
mov r14d, 1
xor ebx, ebx
mov r8, rdi
sub r8, rbx
jb 0x140125d47
cmp rdi, 0xf
ja 0x140125d47
add rbx, r15
mov cl, byte [rsp + r14 + 0x97]
mov rdx, rbx
call fcn.1400225b3
cmp rax, 1
jne 0x140125d47
mov rdi, rdx
mov rbx, qword [rsp + 0x80]
mov r14, qword [rsp + 0x90]
add rdi, rbx
lea rax, [r14 - 1]
mov r12, rdi
sub r12, rax
jb 0x140125d3a
mov r13, r12
add r13, r14
jb 0x140125d3a
cmp r13, 0xf
ja 0x140125d3a
cmp r14, 5
jae 0x140125df3
lea rcx, [r15 + r12]
mov rdx, r14
mov r8, rsi
mov r9, r14
call fcn.140045290
test al, al
jne 0x140125d68
mov qword [rsp + 0x88], rdi
jmp 0x140125cc3
lea rcx, str._bpV_
call fcn.14005d7af
nop
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [r15 + r13]
mov edx, 0xf
sub rdx, r13
call fcn.14002373a
test al, 1
jne 0x140125daa
shr eax, 0x10
lea rdx, [rsp + 0x70]
mov qword [rdx], r15
mov qword [rdx + 8], r12
mov word [rdx + 0x10], ax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14012f018
cmp qword [rsi], 0
je 0x140125db3
mov rcx, qword [rsp + 0x40]
jmp 0x140125d4e
lea rcx, str.invalid_port_value
jmp 0x140125d4e
mov rax, qword [rsp + 0x40]
movups xmm0, xmmword [rsp + 0x48]
lea rdx, [rsp + 0x110]
movups xmmword [rdx + 8], xmm0
mov qword [rdx], rax
lea rsi, [rsp + 0xd0]
mov rcx, rsi
call fcn.14012f0c8
cmp qword [rsi], 0
jne 0x140125857
mov rcx, qword [rsp + 0xd8]
jmp 0x140125d4e
ud2