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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x110]
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0xa8], 0
je 0x180053a2b
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x50], rax
jmp 0x180053a3c
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x24]
mov rax, qword [rsp + 0x98]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x48]
call fcn.180058600
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x180053a74
mov eax, dword [rsp + 0x20]
jmp 0x180053ec6
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
add rax, 4
mov r9, rax
mov rax, qword [rsp + 0x90]
mov r8d, dword [rax + 0xbc]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.180084960
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x180053ab8
mov eax, dword [rsp + 0x20]
jmp 0x180053ec6
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xbc]
mov ecx, dword [rsp + 0xa8]
lea eax, [rax + rcx*4 + 4]
cdqe
mov rcx, qword [rsp + 0x98]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x98]
mov qword [rcx], rax
cmp dword [rsp + 0x24], 0
je 0x180053b0d
mov eax, dword [0x180402fa4]
cdq
mov rcx, qword [rsp + 0x90]
idiv dword [rcx + 0xbc]
inc eax
cmp dword [rsp + 0x24], eax
jne 0x180053b17
mov eax, 0x65
jmp 0x180053ec6
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x1c]
cmp dword [rsp + 0x24], eax
ja 0x180053b3d
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xa0]
call fcn.180065390
test eax, eax
je 0x180053b44
xor eax, eax
jmp 0x180053ec6
cmp dword [rsp + 0xa8], 0
je 0x180053baf
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
sub rax, 4
lea r8, [rsp + 0x44]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call fcn.180058600
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x180053b83
mov eax, dword [rsp + 0x20]
jmp 0x180053ec6
cmp dword [rsp + 0xb0], 0
jne 0x180053baf
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
call fcn.180052ab0
cmp eax, dword [rsp + 0x44]
je 0x180053baf
mov eax, 0x65
jmp 0x180053ec6
cmp qword [rsp + 0xa0], 0
je 0x180053bdf
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xa0]
call fcn.1800650a0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x180053bdf
mov eax, dword [rsp + 0x20]
jmp 0x180053ec6
cmp dword [rsp + 0x24], 1
jne 0x180053c2c
mov rax, qword [rsp + 0x90]
movsx eax, word [rax + 0xb2]
mov ecx, 1
imul rcx, rcx, 0x14
mov rdx, qword [rsp + 0x30]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x180053c2c
mov eax, 1
imul rax, rax, 0x14
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x90]
mov word [rcx + 0xb2], ax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x120], 0
je 0x180053c49
mov qword [rsp + 0x28], 0
jmp 0x180053c5f
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x90]
call fcn.180085c10
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0xa8], 0
je 0x180053cae
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0xb]
test eax, eax
jne 0x180053c9c
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x68]
cmp qword [rax], rcx
jle 0x180053c9c
mov dword [rsp + 0x38], 0
jmp 0x180053ca4
mov dword [rsp + 0x38], 1
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x40], eax
jmp 0x180053ce0
cmp qword [rsp + 0x28], 0
je 0x180053cd0
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x34]
and eax, 8
test eax, eax
je 0x180053cd0
mov dword [rsp + 0x3c], 0
jmp 0x180053cd8
mov dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x48]
cmp qword [rax], 0
je 0x180053dc2
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x14]
cmp eax, 4
jge 0x180053d1b
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x14]
test eax, eax
jne 0x180053dc2
cmp dword [rsp + 0x40], 0
je 0x180053dc2
mov eax, dword [rsp + 0x24]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x90]
movsxd rcx, dword [rcx + 0xbc]
imul rax, rcx
mov qword [rsp + 0x60], rax
mov r9, qword [rsp + 0x60]
mov rax, qword [rsp + 0x90]
mov r8d, dword [rax + 0xbc]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x48]
call fcn.180084be0
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x24]
cmp dword [rsp + 0x24], eax
jbe 0x180053d94
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x24]
mov dword [rax + 0x24], ecx
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x70], 0
je 0x180053dbd
mov r8, qword [rsp + 0x30]
mov edx, dword [rsp + 0x24]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x70]
call fcn.180064070
jmp 0x180053e42
cmp dword [rsp + 0xa8], 0
jne 0x180053e42
cmp qword [rsp + 0x28], 0
jne 0x180053e42
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x18]
or eax, 2
mov rcx, qword [rsp + 0x90]
mov byte [rcx + 0x18], al
mov r9d, 1
lea r8, [rsp + 0x28]
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x90]
call fcn.180085a70
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x18]
and eax, 0xfffffffd
mov rcx, qword [rsp + 0x90]
mov byte [rcx + 0x18], al
cmp dword [rsp + 0x20], 0
je 0x180053e38
mov eax, dword [rsp + 0x20]
jmp 0x180053ec6
mov rcx, qword [rsp + 0x28]
call fcn.180088b30
cmp qword [rsp + 0x28], 0
je 0x180053ec2
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x90]
movsxd rax, dword [rax + 0xbc]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x30]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x90]
call qword [rax + 0x100]
cmp dword [rsp + 0x24], 1
jne 0x180053eb8
mov eax, 1
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x58]
lea rdi, [rcx + 0x88]
lea rsi, [rdx + rax]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x28]
call fcn.180088d40
mov eax, dword [rsp + 0x20]
add rsp, 0x78
pop rdi
pop rsi
ret