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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rcx, [0x1805d87e1]
call fcn.18025a230
cmp qword [rsp + 0x80], 0
jne 0x180386988
mov r8d, 0x1f
lea rdx, [0x18056a930]
lea rcx, [0x18056a9a0]
call fcn.180385550
xor eax, eax
test eax, eax
jne 0x180386964
mov dword [rsp + 0x3c], 0
mov rax, qword [rsp + 0x90]
add rax, 8
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax - 8]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x1803869c5
jmp 0x180386a4f
mov rax, qword [rsp + 0x90]
add rax, 8
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax - 8]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x90]
add rax, 8
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax - 8]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0x13
ja case.default.0x180386a32
movsxd rax, dword [rsp + 0x60]
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0x386c5c]
add rax, rcx
jmp rax
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
jmp case.default.0x180386a32
mov eax, reloc.WS2_32.dll_recv
jmp 0x180386c53
jmp 0x180386996
cmp dword [rsp + 0x3c], 0
jne 0x180386a60
mov eax, 2
jmp 0x180386c53
mov eax, dword [rsp + 0x3c]
mov edx, eax
mov ecx, 0x50
call fcn.1802dae70
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x180386a87
mov eax, recv
jmp 0x180386c53
mov dword [rsp + 0x3c], 0
mov rax, qword [rsp + 0x98]
add rax, 8
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax - 8]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x98]
add rax, 8
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax - 8]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x98]
add rax, 8
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax - 8]
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x34], 0
jne 0x180386b06
jmp 0x180386c18
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
dec eax
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0x11
ja case.default.0x180386b39
movsxd rax, dword [rsp + 0x64]
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0x386cac]
add rax, rcx
jmp rax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x58]
mov edx, dword [rsp + 0x34]
mov dword [rcx + rax], edx
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 8], rdx
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x58]
mov edx, dword [rsp + 0x38]
mov dword [rcx + rax + 0x10], edx
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x58]
mov dword [rcx + rax + 0x14], 0
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x58]
mov dword [rcx + rax + 0x18], 0
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x58]
mov dword [rcx + rax + 0x1c], 0
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x58]
mov dword [rcx + rax + 0x20], 0
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x58]
mov qword [rcx + rax + 0x28], 0
xor eax, eax
test eax, eax
jne case.0x180386b39.1
jmp 0x180386a8f
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x3c]
mov r8, qword [rsp + 0x48]
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.180389390
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x48]
call fcn.18027ad70
mov eax, dword [rsp + 0x30]
add rsp, 0x70
pop rdi
ret