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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0xb0
mov rax, qword [rsp + 0xc8]
movzx eax, word [rax]
and eax, 1
test eax, eax
je 0x140134082
mov dword [rsp + 0x18], 1
jmp 0x14013408a
mov dword [rsp + 0x18], 0
mov eax, dword [rsp + 0x18]
mov dword [rsp + 4], eax
cmp dword [rsp + 0xc0], 0x100
jge 0x14013410b
mov rax, qword [rsp + 0xc8]
movzx eax, word [rax]
and eax, 2
test eax, eax
je 0x14013410b
mov eax, dword [rsp + 0xc0]
cdq
and edx, 7
add eax, edx
sar eax, 3
cdqe
mov rcx, qword [rsp + 0xc8]
movzx eax, byte [rcx + rax + 2]
mov ecx, dword [rsp + 0xc0]
and ecx, 7
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
test eax, eax
je 0x14013410b
cmp dword [rsp + 4], 0
jne 0x1401340fa
mov dword [rsp + 0x1c], 1
jmp 0x140134102
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x1c]
jmp 0x14013498d
mov rax, qword [rsp + 0xc8]
movzx eax, word [rax]
and eax, 2
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xc8]
add rax, 2
mov qword [rsp + 0xc8], rax
cmp dword [rsp + 0x20], 0
je 0x140134142
mov dword [rsp + 0x24], 1
jmp 0x14013414a
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 0
je 0x140134165
mov rax, qword [rsp + 0xc8]
add rax, 0x20
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
movzx eax, word [rax]
mov dword [rsp], eax
mov eax, dword [rsp]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xc8]
add rax, 2
mov qword [rsp + 0xc8], rax
cmp dword [rsp + 0x28], 0
je 0x14013419f
mov dword [rsp + 0x2c], 1
jmp 0x1401341a7
mov dword [rsp + 0x2c], 0
cmp dword [rsp + 0x2c], 0
je 0x140134989
cmp dword [rsp], 1
jne 0x14013428e
cmp dword [rsp + 0xd0], 0
je 0x140134237
mov rax, qword [rsp + 0xc8]
movzx eax, word [rax]
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0xc8]
add rax, 2
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 8]
and eax, 0xfc00
cmp eax, 0xd800
jne 0x140134235
mov eax, dword [rsp + 8]
and eax, 0x3ff
shl eax, 0xa
mov rcx, qword [rsp + 0xc8]
movzx ecx, word [rcx]
and ecx, 0x3ff
or eax, ecx
add eax, 0x10000
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0xc8]
add rax, 2
mov qword [rsp + 0xc8], rax
jmp 0x14013425a
mov rax, qword [rsp + 0xc8]
movzx eax, word [rax]
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0xc8]
add rax, 2
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 8]
cmp dword [rsp + 0xc0], eax
jne 0x140134289
cmp dword [rsp + 4], 0
jne 0x140134278
mov dword [rsp + 0x30], 1
jmp 0x140134280
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
jmp 0x14013498d
jmp 0x140134984
cmp dword [rsp], 2
jne 0x14013440d
cmp dword [rsp + 0xd0], 0
je 0x140134386
mov rax, qword [rsp + 0xc8]
movzx eax, word [rax]
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0xc8]
add rax, 2
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 8]
and eax, 0xfc00
cmp eax, 0xd800
jne 0x140134315
mov eax, dword [rsp + 8]
and eax, 0x3ff
shl eax, 0xa
mov rcx, qword [rsp + 0xc8]
movzx ecx, word [rcx]
and ecx, 0x3ff
or eax, ecx
add eax, 0x10000
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0xc8]
add rax, 2
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
movzx eax, word [rax]
mov dword [rsp + 0xc], eax
mov rax, qword [rsp + 0xc8]
add rax, 2
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0xc]
and eax, 0xfc00
cmp eax, 0xd800
jne 0x140134384
mov eax, dword [rsp + 0xc]
and eax, 0x3ff
shl eax, 0xa
mov rcx, qword [rsp + 0xc8]
movzx ecx, word [rcx]
and ecx, 0x3ff
or eax, ecx
add eax, 0x10000
mov dword [rsp + 0xc], eax
mov rax, qword [rsp + 0xc8]
add rax, 2
mov qword [rsp + 0xc8], rax
jmp 0x1401343cc
mov rax, qword [rsp + 0xc8]
movzx eax, word [rax]
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0xc8]
add rax, 2
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
movzx eax, word [rax]
mov dword [rsp + 0xc], eax
mov rax, qword [rsp + 0xc8]
add rax, 2
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 8]
cmp dword [rsp + 0xc0], eax
jl 0x140134408
mov eax, dword [rsp + 0xc]
cmp dword [rsp + 0xc0], eax
jg 0x140134408
cmp dword [rsp + 4], 0
jne 0x1401343f7
mov dword [rsp + 0x34], 1
jmp 0x1401343ff
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
jmp 0x14013498d
jmp 0x140134984
mov eax, dword [rsp + 0xc0]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
cdqe
lea rcx, [0x1402b6f00]
movzx eax, byte [rcx + rax]
imul eax, eax, 0x80
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xc0]
cdq
and edx, 0x7f
add eax, edx
and eax, 0x7f
sub eax, edx
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
cdqe
lea rcx, [0x1402b9100]
movzx eax, word [rcx + rax*2]
lea rcx, reloc.WSOCK32.dll_htons
lea rax, [rcx + rax*8]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0xc8]
movzx eax, word [rax]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 8
ja case.default.0x14013449b
movsxd rax, dword [rsp + 0x3c]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x134998]
add rax, rcx
jmp rax
cmp dword [rsp], 3
jne 0x1401344c5
cmp dword [rsp + 4], 0
jne 0x1401344b4
mov dword [rsp + 0x40], 1
jmp 0x1401344bc
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
jmp 0x14013498d
jmp 0x140134970
mov rax, qword [rsp + 0x10]
movzx eax, byte [rax + 1]
cmp eax, 9
je 0x1401344fe
mov rax, qword [rsp + 0x10]
movzx eax, byte [rax + 1]
cmp eax, 5
je 0x1401344fe
mov rax, qword [rsp + 0x10]
movzx eax, byte [rax + 1]
cmp eax, 8
je 0x1401344fe
mov dword [rsp + 0x44], 0
jmp 0x140134506
mov dword [rsp + 0x44], 1
cmp dword [rsp], 3
jne 0x140134516
mov dword [rsp + 0x48], 1
jmp 0x14013451e
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x44], eax
jne 0x14013454a
cmp dword [rsp + 4], 0
jne 0x140134539
mov dword [rsp + 0x4c], 1
jmp 0x140134541
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x4c]
jmp 0x14013498d
jmp 0x140134970
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0xc8]
movzx eax, word [rcx + rax]
mov rcx, qword [rsp + 0x10]
movzx ecx, byte [rcx + 1]
lea rdx, [0x1402b5960]
cmp eax, dword [rdx + rcx*4]
jne 0x140134583
mov dword [rsp + 0x50], 1
jmp 0x14013458b
mov dword [rsp + 0x50], 0
cmp dword [rsp], 3
jne 0x14013459b
mov dword [rsp + 0x54], 1
jmp 0x1401345a3
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x50], eax
jne 0x1401345cf
cmp dword [rsp + 4], 0
jne 0x1401345be
mov dword [rsp + 0x58], 1
jmp 0x1401345c6
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
jmp 0x14013498d
jmp 0x140134970
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0xc8]
movzx eax, word [rcx + rax]
mov rcx, qword [rsp + 0x10]
movzx ecx, byte [rcx + 1]
cmp eax, ecx
jne 0x140134600
mov dword [rsp + 0x5c], 1
jmp 0x140134608
mov dword [rsp + 0x5c], 0
cmp dword [rsp], 3
jne 0x140134618
mov dword [rsp + 0x60], 1
jmp 0x140134620
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x5c], eax
jne 0x14013464c
cmp dword [rsp + 4], 0
jne 0x14013463b
mov dword [rsp + 0x64], 1
jmp 0x140134643
mov dword [rsp + 0x64], 0
mov eax, dword [rsp + 0x64]
jmp 0x14013498d
jmp 0x140134970
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0xc8]
movzx eax, word [rcx + rax]
mov rcx, qword [rsp + 0x10]
movzx ecx, byte [rcx]
cmp eax, ecx
jne 0x14013467c
mov dword [rsp + 0x68], 1
jmp 0x140134684
mov dword [rsp + 0x68], 0
cmp dword [rsp], 3
jne 0x140134694
mov dword [rsp + 0x6c], 1
jmp 0x14013469c
mov dword [rsp + 0x6c], 0
mov eax, dword [rsp + 0x6c]
cmp dword [rsp + 0x68], eax
jne 0x1401346c8
cmp dword [rsp + 4], 0
jne 0x1401346b7
mov dword [rsp + 0x70], 1
jmp 0x1401346bf
mov dword [rsp + 0x70], 0
mov eax, dword [rsp + 0x70]
jmp 0x14013498d
jmp 0x140134970
mov rax, qword [rsp + 0x10]
movzx eax, byte [rax + 1]
lea rcx, [0x1402b5960]
cmp dword [rcx + rax*4], 1
je 0x140134703
mov rax, qword [rsp + 0x10]
movzx eax, byte [rax + 1]
lea rcx, [0x1402b5960]
cmp dword [rcx + rax*4], 3
je 0x140134703
mov dword [rsp + 0x74], 0
jmp 0x14013470b
mov dword [rsp + 0x74], 1
cmp dword [rsp], 3
jne 0x14013471b
mov dword [rsp + 0x78], 1
jmp 0x140134723
mov dword [rsp + 0x78], 0
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x74], eax
jne 0x14013474f
cmp dword [rsp + 4], 0
jne 0x14013473e
mov dword [rsp + 0x7c], 1
jmp 0x140134746
mov dword [rsp + 0x7c], 0
mov eax, dword [rsp + 0x7c]
jmp 0x14013498d
jmp 0x140134970
mov rax, qword [rsp + 0x10]
movzx eax, byte [rax + 1]
lea rcx, [0x1402b5960]
cmp dword [rcx + rax*4], 6
je 0x14013479f
cmp dword [rsp + 0xc0], 9
je 0x14013479f
cmp dword [rsp + 0xc0], 0xa
je 0x14013479f
cmp dword [rsp + 0xc0], 0xc
je 0x14013479f
cmp dword [rsp + 0xc0], 0xd
je 0x14013479f
mov dword [rsp + 0x80], 0
jmp 0x1401347aa
mov dword [rsp + 0x80], 1
cmp dword [rsp], 3
jne 0x1401347bd
mov dword [rsp + 0x84], 1
jmp 0x1401347c8
mov dword [rsp + 0x84], 0
mov eax, dword [rsp + 0x84]
cmp dword [rsp + 0x80], eax
jne 0x140134803
cmp dword [rsp + 4], 0
jne 0x1401347ec
mov dword [rsp + 0x88], 1
jmp 0x1401347f7
mov dword [rsp + 0x88], 0
mov eax, dword [rsp + 0x88]
jmp 0x14013498d
jmp 0x140134970
mov rax, qword [rsp + 0x10]
movzx eax, byte [rax + 1]
lea rcx, [0x1402b5960]
cmp dword [rcx + rax*4], 6
je 0x14013485d
cmp dword [rsp + 0xc0], 9
je 0x14013485d
cmp dword [rsp + 0xc0], 0xa
je 0x14013485d
cmp dword [rsp + 0xc0], 0xb
je 0x14013485d
cmp dword [rsp + 0xc0], 0xc
je 0x14013485d
cmp dword [rsp + 0xc0], 0xd
je 0x14013485d
mov dword [rsp + 0x8c], 0
jmp 0x140134868
mov dword [rsp + 0x8c], 1
cmp dword [rsp], 3
jne 0x14013487b
mov dword [rsp + 0x90], 1
jmp 0x140134886
mov dword [rsp + 0x90], 0
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x8c], eax
jne 0x1401348c1
cmp dword [rsp + 4], 0
jne 0x1401348aa
mov dword [rsp + 0x94], 1
jmp 0x1401348b5
mov dword [rsp + 0x94], 0
mov eax, dword [rsp + 0x94]
jmp 0x14013498d
jmp 0x140134970
mov rax, qword [rsp + 0x10]
movzx eax, byte [rax + 1]
lea rcx, [0x1402b5960]
cmp dword [rcx + rax*4], 1
je 0x140134909
mov rax, qword [rsp + 0x10]
movzx eax, byte [rax + 1]
lea rcx, [0x1402b5960]
cmp dword [rcx + rax*4], 3
je 0x140134909
cmp dword [rsp + 0xc0], 0x5f
je 0x140134909
mov dword [rsp + 0x98], 0
jmp 0x140134914
mov dword [rsp + 0x98], 1
cmp dword [rsp], 3
jne 0x140134927
mov dword [rsp + 0x9c], 1
jmp 0x140134932
mov dword [rsp + 0x9c], 0
mov eax, dword [rsp + 0x9c]
cmp dword [rsp + 0x98], eax
jne 0x14013496a
cmp dword [rsp + 4], 0
jne 0x140134956
mov dword [rsp + 0xa0], 1
jmp 0x140134961
mov dword [rsp + 0xa0], 0
mov eax, dword [rsp + 0xa0]
jmp 0x14013498d
jmp 0x140134970
xor eax, eax
jmp 0x14013498d
mov rax, qword [rsp + 0xc8]
add rax, 4
mov qword [rsp + 0xc8], rax
jmp 0x140134165
mov eax, dword [rsp + 4]
add rsp, 0xb0
pop rdi
ret