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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x42]
dec eax
mov dword [rsp + 0x40], eax
jmp 0x140317eec
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x140318454
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0xe0]
lea rax, [rcx + rax + 0x398]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x35]
cmp eax, 0xaa
je 0x140318195
mov dword [rsp + 0x70], 0
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x47]
cmp eax, 2
jne 0x1403180e0
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x42]
dec eax
cmp dword [rsp + 0x40], eax
jne 0x1403180e0
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x28]
and eax, 0x200
test eax, eax
je 0x1403180e0
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 0x64]
shr eax, 7
and eax, 1
test eax, eax
je 0x1403180e0
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x1e]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jle 0x1403180e0
movsxd rax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx + 0x10]
movsx eax, word [rcx + rax*2]
cmp eax, 0x24
jl 0x1403180e0
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x38]
inc eax
mov dword [rsp + 0x84], eax
mov dword [rsp + 0x50], 0
jmp 0x140318006
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x50], eax
jge 0x140318042
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x84]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 8]
mov edx, 0x5a
mov rcx, qword [rsp + 0x38]
call fcn.1402f4c80
jmp 0x140317ffc
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x38]
mov ecx, dword [rsp + 0x54]
lea eax, [rcx + rax + 1]
mov rcx, qword [rsp + 0x78]
mov dword [rcx + 0x38], eax
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x35]
cmp eax, 4
jne 0x140318075
mov dword [rsp + 0x80], reloc.WS2_32.dll_shutdown
jmp 0x140318080
mov dword [rsp + 0x80], 0x19
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 8]
mov edx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x38]
call fcn.1402f4e80
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x30]
mov r9d, dword [rax + 0x3c]
mov r8d, 1
mov edx, listen
mov rcx, qword [rsp + 0x38]
call fcn.1402f4a50
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x18]
mov rcx, qword [rsp + 0x38]
call fcn.1402f5f80
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x36]
mov rcx, qword [rsp + 0x30]
movzx ecx, byte [rcx + 0x35]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov r9d, dword [rax + 0x3c]
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0x38]
mov edx, ecx
mov rcx, qword [rsp + 0x38]
call fcn.1402f4c80
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x37]
movzx edx, ax
mov rcx, qword [rsp + 0x38]
call fcn.1402f53e0
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x24], 0
je 0x14031817e
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x28]
mov rcx, qword [rsp + 0x38]
call fcn.1402f5f80
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x3c]
dec eax
mov r9d, eax
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0x24]
mov edx, 0x31
mov rcx, qword [rsp + 0x38]
call fcn.1402f4a50
cmp dword [rsp + 0x70], 0
je 0x140318193
mov edx, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.1402f5430
jmp 0x1403181a7
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x18]
mov rcx, qword [rsp + 0x38]
call fcn.1402f5f80
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x28]
and eax, 0x800
test eax, eax
je 0x1403182da
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x40], 0
jle 0x1403182da
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
call fcn.1402f5f80
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x40]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
dec eax
cdqe
imul rax, rax, 0x14
mov rcx, qword [rsp + 0x30]
add rax, qword [rcx + 0x48]
mov qword [rsp + 0x58], rax
jmp 0x14031821d
mov eax, dword [rsp + 0x60]
dec eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x58]
sub rax, 0x14
mov qword [rsp + 0x58], rax
cmp dword [rsp + 0x60], 0
jle 0x1403182da
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 4]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.1402f5430
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x10]
cmp eax, 0xaa
je 0x1403182bf
mov rax, qword [rsp + 0x58]
cmp dword [rax + 0xc], 0
je 0x140318299
mov rcx, qword [rsp + 0x38]
call fcn.1402f6000
add eax, 2
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0xc]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 8]
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 8]
mov edx, 0x1a
mov rcx, qword [rsp + 0x38]
call fcn.1402f4e80
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x10]
mov rcx, qword [rsp + 0x58]
mov r9d, dword [rcx + 4]
mov rcx, qword [rsp + 0x58]
mov r8d, dword [rcx]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.1402f4a50
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 4]
dec eax
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.1402f5430
jmp 0x140318205
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x38]
call fcn.1402f5f80
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x14], 0
je 0x140318332
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x14]
mov rcx, qword [rsp + 0x38]
call fcn.1402f4aa0
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x14]
mov rcx, qword [rsp + 0x38]
call fcn.1402f5430
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x14]
sub eax, 2
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.1402f5430
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x30], 0
je 0x140318362
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x2c]
shr eax, 1
mov rcx, qword [rsp + 0x30]
mov r9d, dword [rcx + 0x30]
mov r8d, eax
mov edx, 0x31
mov rcx, qword [rsp + 0x38]
call fcn.1402f4a50
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x14031844f
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax]
mov edx, 0x2f
mov rcx, qword [rsp + 0x38]
call fcn.1402f4a10
mov dword [rsp + 0x94], eax
mov eax, dword [rsp + 0x74]
and eax, 0x40
test eax, eax
jne 0x1403183bd
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 4]
mov edx, 0x81
mov rcx, qword [rsp + 0x38]
call fcn.1402f4a10
mov eax, dword [rsp + 0x74]
and eax, 0x200
test eax, eax
jne 0x1403183e3
mov eax, dword [rsp + 0x74]
and eax, 0x2000
test eax, eax
je 0x1403183fb
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x40], 0
je 0x1403183fb
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 8]
mov edx, 0x81
mov rcx, qword [rsp + 0x38]
call fcn.1402f4a10
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x35]
cmp eax, 0x42
jne 0x14031842c
mov rax, qword [rsp + 0x30]
mov r9d, dword [rax + 0x1c]
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0x38]
mov edx, recv
mov rcx, qword [rsp + 0x38]
call fcn.1402f4a50
jmp 0x14031843e
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x38]
call fcn.1402f4aa0
mov edx, dword [rsp + 0x94]
mov rcx, qword [rsp + 0x38]
call fcn.1402f5430
jmp 0x140317ee2
mov rax, qword [rsp + 0xe0]
mov edx, dword [rax + 0x38]
mov rcx, qword [rsp + 0x38]
call fcn.1402f5f80
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0xe0]
add rax, 0x398
mov qword [rsp + 0x30], rax
jmp 0x14031849e
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x30]
add rax, 0x60
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x42]
cmp dword [rsp + 0x40], eax
jge 0x140318738
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x34]
imul rax, rax, 0x70
mov rcx, qword [rsp + 0xc0]
lea rax, [rcx + rax + 8]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x40]
shr eax, 4
and eax, 1
test eax, eax
je 0x14031854d
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0xa0]
mov r9d, dword [rax + 0x38]
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 4]
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x20]
mov rcx, qword [rsp + 0x78]
call fcn.140399e40
jmp 0x140318486
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x28]
and eax, 0x240
test eax, eax
je 0x140318571
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x88], rax
jmp 0x140318593
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x28]
and eax, 0x2000
test eax, eax
je 0x140318593
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x140318733
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x45]
test eax, eax
je 0x1403185cc
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x18]
mov eax, dword [rax + 0x40]
and eax, 0x20
test eax, eax
je 0x140318733
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rax + 0x61]
test eax, eax
jne 0x140318733
mov rcx, qword [rsp + 0x38]
call fcn.1402f6000
mov dword [rsp + 0x98], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x64], eax
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x38]
call fcn.1402f5830
mov qword [rsp + 0x48], rax
jmp 0x14031862a
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x48]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x64], eax
jge 0x140318733
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 4]
cmp dword [rax + 4], ecx
je 0x14031864f
jmp 0x140318612
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
cmp eax, 0x5a
jne 0x1403186e8
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 8]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x40]
and eax, 0x20
test eax, eax
je 0x1403186ac
mov rcx, qword [rsp + 0xb0]
call fcn.140308420
mov qword [rsp + 0xc8], rax
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xc8]
mov rcx, qword [rcx + 8]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x44], eax
movzx edx, word [rsp + 0x44]
mov rcx, qword [rsp + 0x88]
call fcn.140308470
cwde
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x1403186e6
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x44]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 8]
mov dword [rax + 4], ecx
jmp 0x14031872e
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
cmp eax, 0x80
jne 0x140318711
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 8]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x48]
mov byte [rax], 0x87
jmp 0x14031872e
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
cmp eax, 0x15
jne 0x14031872e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 8]
mov dword [rax + 4], ecx
jmp 0x140318612
jmp 0x140318486
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xe0]
mov ecx, dword [rcx + 0x3c]
mov dword [rax + 0xbc], ecx
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xb8]
call fcn.14039b600
add rsp, 0xd8
ret