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

Disassembly:
mov dword [rsp + 0x20], r9d
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
movsxd rax, dword [rsp + 0x98]
add rax, 0x22
mov dword [rsp + 0x48], eax
call fcn.180033b00
mov r9d, 0x9b
lea r8, [0x18008e7f8]
mov edx, dword [rsp + 0x48]
mov rcx, rax
call fcn.1800743e0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, 0xc
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x24], 0
movzx eax, word [rsp + 0x80]
and eax, 1
test eax, eax
je 0x18007820f
cmp qword [rsp + 0x90], 0
je 0x1800781e4
cmp dword [rsp + 0x98], 0
jle 0x1800781e4
mov rax, qword [rsp + 0x30]
add rax, 0xe
mov r9, qword [rsp + 0x90]
mov r8d, dword [rsp + 0x88]
lea rdx, str._07d:_s
mov rcx, rax
call fcn.1800013a0
mov dword [rsp + 0x24], eax
jmp 0x180078208
mov rax, qword [rsp + 0x30]
add rax, 0xe
mov r8d, dword [rsp + 0x88]
lea rdx, str._07d:
mov rcx, rax
call fcn.1800013a0
mov dword [rsp + 0x24], eax
mov byte [rsp + 0x28], 0x81
jmp 0x180078283
mov eax, dword [rsp + 0x98]
add eax, 8
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
add rax, 0xe
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x88]
mov dword [rax], ecx
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x98]
mov dword [rax + 4], ecx
cmp qword [rsp + 0x90], 0
je 0x18007827e
cmp dword [rsp + 0x98], 0
jle 0x18007827e
movsxd rax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
add rcx, 8
mov r8, rax
mov rdx, qword [rsp + 0x90]
call fcn.180037eb0
mov byte [rsp + 0x28], 0x82
mov byte [rsp + 0x29], 0
mov dword [rsp + 0x20], ntohs
movzx eax, word [rsp + 0x80]
and eax, 2
test eax, eax
je 0x180078345
mov byte [rsp + 0x29], 0x80
mov eax, dword [rsp + 0x20]
sub eax, 4
mov dword [rsp + 0x20], eax
call fcn.18004462c
mov dword [rsp + 0x3c], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov r8d, 4
lea rdx, [rsp + 0x3c]
mov rcx, rax
call fcn.180037eb0
mov dword [rsp + 0x38], 0
jmp 0x1800782f3
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x38], eax
jge 0x180078345
mov eax, dword [rsp + 0x38]
add eax, 0xe
cdqe
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x38]
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
cdqe
movzx eax, byte [rsp + rax + 0x3c]
mov ecx, dword [rsp + 0x4c]
xor ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x38]
add ecx, 0xe
movsxd rcx, ecx
mov rdx, qword [rsp + 0x30]
mov byte [rdx + rcx], al
jmp 0x1800782e9
cmp dword [rsp + 0x24], 0x7e
jge 0x180078371
mov eax, dword [rsp + 0x20]
sub eax, 2
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rsp + 0x24]
mov byte [rcx + rax], dl
jmp 0x18007840a
cmp dword [rsp + 0x24], 0x7e
jl 0x1800783ba
cmp dword [rsp + 0x24], 0x10000
jge 0x1800783ba
mov eax, dword [rsp + 0x20]
sub eax, 4
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax], 0x7e
movzx ecx, word [rsp + 0x24]
call qword [sym.imp.WS2_32.dll_htons]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov word [rdx + rcx + 2], ax
jmp 0x18007840a
cmp dword [rsp + 0x24], 0x10000
jl 0x18007840a
mov eax, dword [rsp + 0x20]
sub eax, 0xa
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax], 0x7f
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.WS2_32.dll_htonl]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov dword [rdx + rcx + 2], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 6], 0
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rsp + 0x28]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x20]
inc eax
cdqe
movzx ecx, byte [rsp + 0x29]
mov rdx, qword [rsp + 0x30]
movzx eax, byte [rdx + rax]
or eax, ecx
mov ecx, dword [rsp + 0x20]
inc ecx
movsxd rcx, ecx
mov rdx, qword [rsp + 0x30]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov eax, dword [rsp + 0x24]
add eax, 0xe
sub eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x70]
add rax, 0xf0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsp + 0x70]
add rax, 0xc8
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.180033ea0
mov rax, qword [rsp + 0x70]
add rax, 0xf0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0xb8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
add rsp, 0x68
ret