Function at 0x1400833c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x160
lea rdi, [rsp + 0x20]
mov ecx, 0x50
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x170]
mov rax, qword [0x1401a9600]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x20], 0
jmp 0x140083419
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xf
ja 0x140083455
mov eax, dword [rsp + 0x20]
shl rax, 1
mov qword [rsp + 0x120], rax
cmp qword [rsp + 0x120], 0x20
jae 0x14008343c
jmp 0x140083441
call fcn.1400ea1fc
xor eax, eax
mov rcx, qword [rsp + 0x120]
mov word [rsp + rcx + 0xa8], ax
jmp 0x14008340f
mov dword [rsp + 0x24], 0
jmp 0x140083469
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x180]
cmp dword [rsp + 0x24], eax
jae 0x1400834ab
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x178]
movzx eax, word [rcx + rax*2]
movzx eax, word [rsp + rax*2 + 0xa8]
inc ax
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x178]
movzx ecx, word [rdx + rcx*2]
mov word [rsp + rcx*2 + 0xa8], ax
jmp 0x14008345f
mov rax, qword [rsp + 0x190]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x2c], reloc.WS2_32.dll_ntohs
jmp 0x1400834cd
mov eax, dword [rsp + 0x2c]
dec eax
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 1
jb 0x1400834e8
mov eax, dword [rsp + 0x2c]
movzx eax, word [rsp + rax*2 + 0xa8]
test eax, eax
je 0x1400834e6
jmp 0x1400834e8
jmp 0x1400834c3
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x30], eax
jbe 0x1400834fa
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x2c], 0
jne 0x14008357d
mov byte [rsp + 0x64], 0x40
mov byte [rsp + 0x65], 1
xor eax, eax
mov word [rsp + 0x66], ax
mov rax, qword [rsp + 0x188]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x64]
mov dword [rax], ecx
mov rax, qword [rsp + 0x188]
mov rax, qword [rax]
add rax, 4
mov rcx, qword [rsp + 0x188]
mov qword [rcx], rax
mov rax, qword [rsp + 0x188]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x64]
mov dword [rax], ecx
mov rax, qword [rsp + 0x188]
mov rax, qword [rax]
add rax, 4
mov rcx, qword [rsp + 0x188]
mov qword [rcx], rax
mov rax, qword [rsp + 0x190]
mov dword [rax], 1
xor eax, eax
jmp 0x140083ca6
mov dword [rsp + 0x28], 1
jmp 0x140083591
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], eax
jae 0x1400835af
mov eax, dword [rsp + 0x28]
movzx eax, word [rsp + rax*2 + 0xa8]
test eax, eax
je 0x1400835ad
jmp 0x1400835af
jmp 0x140083587
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x30], eax
jae 0x1400835c1
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x20], 1
jmp 0x1400835dd
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xf
ja 0x140083619
mov eax, dword [rsp + 0x3c]
shl eax, 1
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x20]
movzx eax, word [rsp + rax*2 + 0xa8]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jge 0x140083617
mov eax, 0xffffffff
jmp 0x140083ca6
jmp 0x1400835d3
cmp dword [rsp + 0x3c], 0
jle 0x14008363b
cmp dword [rsp + 0x170], 0
je 0x140083631
cmp dword [rsp + 0x2c], 1
je 0x14008363b
mov eax, 0xffffffff
jmp 0x140083ca6
mov qword [rsp + 0x128], 2
cmp qword [rsp + 0x128], 0x20
jae 0x140083654
jmp 0x140083659
call fcn.1400ea1fc
xor eax, eax
mov rcx, qword [rsp + 0x128]
mov word [rsp + rcx + 0xe8], ax
mov dword [rsp + 0x20], 1
jmp 0x14008367f
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xf
jae 0x1400836b2
mov eax, dword [rsp + 0x20]
movzx eax, word [rsp + rax*2 + 0xe8]
mov ecx, dword [rsp + 0x20]
movzx ecx, word [rsp + rcx*2 + 0xa8]
add eax, ecx
mov ecx, dword [rsp + 0x20]
inc ecx
mov ecx, ecx
mov word [rsp + rcx*2 + 0xe8], ax
jmp 0x140083675
mov dword [rsp + 0x24], 0
jmp 0x1400836c6
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x180]
cmp dword [rsp + 0x24], eax
jae 0x140083748
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x178]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x140083743
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x178]
movzx eax, word [rcx + rax*2]
movzx eax, word [rsp + rax*2 + 0xe8]
mov rcx, qword [rsp + 0x198]
movzx edx, word [rsp + 0x24]
mov word [rcx + rax*2], dx
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x178]
movzx eax, word [rcx + rax*2]
movzx eax, word [rsp + rax*2 + 0xe8]
inc ax
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x178]
movzx ecx, word [rdx + rcx*2]
mov word [rsp + rcx*2 + 0xe8], ax
jmp 0x1400836bc
mov eax, dword [rsp + 0x170]
mov dword [rsp + 0x130], eax
cmp dword [rsp + 0x130], 0
je 0x14008376c
cmp dword [rsp + 0x130], 1
je 0x140083799
jmp 0x1400837c4
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x90], reloc.WS2_32.dll_sendto
jmp 0x1400837ed
lea rax, [0x14016ac10]
mov qword [rsp + 0x80], rax
lea rax, [0x14016ac50]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x90], 0x101
jmp 0x1400837ed
lea rax, [0x14016ac90]
mov qword [rsp + 0x80], rax
lea rax, [0x14016acd0]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x188]
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x50], 0xffffffff
mov eax, dword [rsp + 0x30]
mov ecx, 1
mov dword [rsp + 0x134], ecx
movzx ecx, al
mov eax, dword [rsp + 0x134]
shl eax, cl
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x170], 1
jne 0x14008386b
cmp dword [rsp + 0x40], 0x354
ja 0x14008387f
cmp dword [rsp + 0x170], 2
jne 0x140083889
cmp dword [rsp + 0x40], 0x250
jbe 0x140083889
mov eax, 1
jmp 0x140083ca6
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov byte [rsp + 0x65], al
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x198]
movzx eax, word [rcx + rax*2]
inc eax
cmp eax, dword [rsp + 0x90]
jae 0x1400838d0
mov byte [rsp + 0x64], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x198]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x66], ax
jmp 0x14008394a
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x198]
movzx eax, word [rcx + rax*2]
cmp eax, dword [rsp + 0x90]
jb 0x14008393e
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x198]
movzx eax, word [rcx + rax*2]
sub eax, dword [rsp + 0x90]
mov eax, eax
mov rcx, qword [rsp + 0x88]
movzx eax, byte [rcx + rax*2]
mov byte [rsp + 0x64], al
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x198]
movzx eax, word [rcx + rax*2]
sub eax, dword [rsp + 0x90]
mov eax, eax
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x66], ax
jmp 0x14008394a
mov byte [rsp + 0x64], 0x60
xor eax, eax
mov word [rsp + 0x66], ax
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov ecx, 1
mov dword [rsp + 0x138], ecx
movzx ecx, al
mov eax, dword [rsp + 0x138]
shl eax, cl
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x34]
mov ecx, 1
mov dword [rsp + 0x13c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x13c]
shl eax, cl
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x4c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x38]
movzx ecx, al
mov eax, dword [rsp + 0x44]
shr eax, cl
add eax, dword [rsp + 0x4c]
mov eax, eax
mov rcx, qword [rsp + 0x78]
mov edx, dword [rsp + 0x64]
mov dword [rcx + rax*4], edx
cmp dword [rsp + 0x4c], 0
jne 0x14008399a
mov eax, dword [rsp + 0x20]
dec eax
mov ecx, 1
mov dword [rsp + 0x140], ecx
movzx ecx, al
mov eax, dword [rsp + 0x140]
shl eax, cl
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x44]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140083a0e
mov eax, dword [rsp + 0x48]
shr eax, 1
mov dword [rsp + 0x48], eax
jmp 0x1400839f2
cmp dword [rsp + 0x48], 0
je 0x140083a39
mov eax, dword [rsp + 0x48]
dec eax
mov ecx, dword [rsp + 0x44]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
jmp 0x140083a41
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
movzx eax, word [rsp + rax*2 + 0xa8]
dec ax
mov word [rsp + 0x144], ax
mov eax, dword [rsp + 0x20]
movzx ecx, word [rsp + 0x144]
mov word [rsp + rax*2 + 0xa8], cx
movzx eax, word [rsp + 0x144]
test eax, eax
jne 0x140083ab1
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x20], eax
jne 0x140083a91
jmp 0x140083c45
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x198]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x178]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x20], eax
jbe 0x140083c40
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x44]
and ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x50]
je 0x140083c40
cmp dword [rsp + 0x38], 0
jne 0x140083ae4
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov ecx, 1
mov dword [rsp + 0x148], ecx
movzx ecx, al
mov eax, dword [rsp + 0x148]
shl eax, cl
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x2c]
jae 0x140083b79
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov eax, eax
movzx eax, word [rsp + rax*2 + 0xa8]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jg 0x140083b63
jmp 0x140083b79
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x3c]
shl eax, 1
mov dword [rsp + 0x3c], eax
jmp 0x140083b26
mov eax, dword [rsp + 0x34]
mov ecx, 1
mov dword [rsp + 0x14c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x14c]
shl eax, cl
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x170], 1
jne 0x140083bb5
cmp dword [rsp + 0x40], 0x354
ja 0x140083bc9
cmp dword [rsp + 0x170], 2
jne 0x140083bd3
cmp dword [rsp + 0x40], 0x250
jbe 0x140083bd3
mov eax, 1
jmp 0x140083ca6
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x44]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x188]
mov rcx, qword [rcx]
movzx edx, byte [rsp + 0x34]
mov byte [rcx + rax*4], dl
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x188]
mov rcx, qword [rcx]
movzx edx, byte [rsp + 0x30]
mov byte [rcx + rax*4 + 1], dl
mov rax, qword [rsp + 0x188]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 2
mov ecx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x188]
mov rdx, qword [rdx]
mov word [rdx + rcx*4 + 2], ax
jmp 0x140083889
cmp dword [rsp + 0x44], 0
je 0x140083c78
mov byte [rsp + 0x64], 0x40
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov byte [rsp + 0x65], al
xor eax, eax
mov word [rsp + 0x66], ax
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x78]
mov edx, dword [rsp + 0x64]
mov dword [rcx + rax*4], edx
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x188]
mov rcx, qword [rcx]
lea rax, [rcx + rax*4]
mov rcx, qword [rsp + 0x188]
mov qword [rcx], rax
mov rax, qword [rsp + 0x190]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400ea080
mov rax, rdi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400e9b80
add rsp, 0x160
pop rdi
ret