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

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [rdx]
mov rdi, rdx
movzx esi, byte [rdx + 0x24]
mov r12, rcx
mov rbx, qword [rcx + 0x10]
xor edx, edx
mov ebp, dword [rsp + 0xb0]
not esi
mov r13d, dword [rax]
and esi, 1
mov eax, dword [rdi + 8]
mov r14d, r9d
mov dword [rsp + 0x34], r13d
mov dword [rsp + 0x38], edx
lea ecx, [rsi + r13]
mov dword [rsp + 0x80], eax
add ecx, dword [rsp + 0xa8]
mov dword [rsp + 0x88], ecx
mov dword [rsp + 0x30], edx
test ebp, ebp
je 0x1400d5133
mov r15d, r9d
sub r15d, ebp
jmp 0x1400d5143
mov eax, dword [r12 + 0x38]
lea r15d, [rax + 1]
add eax, ecx
mov dword [r12 + 0x38], eax
mov eax, dword [r8 + 0xc]
test eax, eax
je 0x1400d5151
lea r8d, [rax + 1]
jmp 0x1400d5155
mov r8d, dword [r8 + 8]
mov eax, dword [r12 + 0x44]
mov ecx, 5
mov r9d, dword [rsp + 0xa0]
dec eax
mov dword [r12 + 0x44], eax
test r9d, r9d
mov rdx, qword [rdi]
mov dword [rdi + 0x1c], eax
mov eax, 1
cmovne eax, ecx
mov dword [rsp + 0xb0], r8d
mov rcx, r12
mov byte [rsp + 0x20], al
mov r8d, r15d
call fcn.14009dc00
test esi, esi
je 0x1400d51f8
movsxd rcx, dword [rbx + 0x90]
lea edx, [r15 + r13]
mov r8d, dword [rdi + 0xc]
cmp dword [rbx + 0x94], ecx
jg 0x1400d51c7
xor eax, eax
mov r9d, edx
mov rcx, rbx
mov dword [rsp + 0x20], eax
lea edx, [rax + 0x7e]
call fcn.14007a370
jmp 0x1400d51f8
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x7e
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
test ebp, ebp
mov ebp, dword [rsp + 0xa8]
jne 0x1400d523d
test ebp, ebp
jle 0x1400d523d
mov r10, qword [r12 + 0x10]
lea edx, [r15 + r13]
add edx, esi
movsxd rcx, dword [r10 + 0x90]
cmp dword [r10 + 0x94], ecx
jg 0x1400d52c7
mov r9d, edx
mov dword [rsp + 0x20], ebp
mov edx, reloc.WLDAP32.dll_Ordinal_79
mov r8d, r14d
mov rcx, r10
call fcn.14007a370
xor r14d, r14d
cmp dword [rsp + 0x80], 0
lea r13, [0x1402e59d0]
jle 0x1400d5707
mov eax, dword [rsp + 0x88]
mov r9d, r15d
mov r8, qword [rsp + 0x90]
mov rdx, rdi
mov rcx, r12
mov dword [rsp + 0x20], eax
call fcn.1400d5000
mov edx, dword [r12 + 0x38]
mov ecx, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
mov eax, ecx
lea r8d, [rdx + 1]
add edx, dword [rdi + 8]
mov dword [r12 + 0x38], edx
sub eax, dword [rdi + 8]
movsxd r13, dword [rbx + 0x90]
add eax, esi
mov dword [rsp + 0xa8], r8d
mov dword [rsp + 0xa0], eax
test esi, esi
je 0x1400d5325
lea edx, [r15 + rcx]
cmp dword [rbx + 0x94], r13d
jg 0x1400d52fd
mov r8d, edx
mov edx, reloc.WS2_32.dll_recvfrom
jmp 0x1400d5339
lea eax, [rcx + 1]
mov dword [r10 + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r10 + 0x88]
mov dword [rax + rcx*8 + 4], r14d
xor r14d, r14d
mov qword [rax + rcx*8 + 0x10], r14
mov dword [rax + rcx*8], reloc.WLDAP32.dll_Ordinal_79
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebp
jmp 0x1400d5240
lea eax, [r13 + 1]
mov dword [rbx + 0x90], eax
lea rsi, [rbx + 0x88]
mov rax, qword [rsi]
lea rcx, [r13*2]
add rcx, r13
mov dword [rax + rcx*8], reloc.WS2_32.dll_recvfrom
jmp 0x1400d5383
mov edx, dword [rdi + 0xc]
cmp dword [rbx + 0x94], r13d
jg 0x1400d535d
mov r8d, edx
mov edx, 0x78
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.14007a370
mov r8d, dword [rsp + 0xa8]
lea rsi, [rbx + 0x88]
mov r13d, eax
jmp 0x1400d5395
lea eax, [r13 + 1]
mov dword [rbx + 0x90], eax
lea rsi, [rbx + 0x88]
mov rax, qword [rsi]
lea rcx, [r13*2]
add rcx, r13
mov dword [rax + rcx*8], 0x78
mov qword [rax + rcx*8 + 0x10], r14
mov qword [rax + rcx*8 + 8], 0
mov dword [rax + rcx*8 + 4], edx
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rdi + 8]
cmp dword [rbx + 0x94], ecx
jg 0x1400d53bd
mov dword [rsp + 0x20], edx
mov r9d, r15d
mov edx, 0x5a
mov rcx, rbx
call fcn.14007a370
jmp 0x1400d53e7
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi]
mov dword [rax + rcx*8], 0x5a
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r14
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
je 0x1400d53f9
lea r14, [0x1402e59d0]
jmp 0x1400d5408
movsxd rax, dword [rdi + 0x18]
lea rcx, [rax + rax*2]
mov rax, qword [rsi]
lea r14, [rax + rcx*8]
mov rax, qword [r12]
cmp byte [rax + 0x67], 0
jne 0x1400d5987
mov eax, dword [rsp + 0xa0]
xor edx, edx
add eax, ebp
mov rbp, qword [r14 + 0x10]
mov dword [r14 + 8], eax
movzx r8d, word [rbp + 6]
mov rcx, qword [rbp + 0x18]
call fcn.1401eae60
mov rcx, qword [rbx]
cmp byte [rcx + 0x67], 0
je 0x1400d544f
mov r8, rbp
mov edx, 0xfffffff8
call fcn.14007aed0
jmp 0x1400d5487
movsxd rax, dword [rbx + 0x90]
lea rdx, [rax + rax*2]
mov rax, qword [rsi]
lea rdx, [rdx - 3]
cmp byte [rax + rdx*8 + 1], 0
lea rdx, [rax + rdx*8]
je 0x1400d547f
mov r9d, 0xfffffff8
mov r8, rbp
mov rcx, rbx
call fcn.14007aff0
jmp 0x1400d5487
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xf8
movzx r9d, word [rbp + 8]
mov rcx, r12
movzx eax, word [rbp + 6]
mov r8d, dword [rsp + 0x80]
sub r9d, eax
mov rdx, qword [rdi]
dec r9d
call fcn.1400d7120
mov qword [r14 + 0x10], rax
movsxd rbp, dword [rbx + 0x90]
lea edx, [rbp + 1]
cmp dword [rbx + 0x94], ebp
jg 0x1400d54da
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0xe]
call fcn.14007a370
xor r9d, r9d
jmp 0x1400d550a
mov rax, qword [rsi]
lea rcx, [rbp*2]
add rcx, rbp
mov dword [rbx + 0x90], edx
xor r9d, r9d
mov dword [rax + rcx*8], send
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r9
dec dword [r12 + 0x44]
mov eax, dword [r12 + 0x44]
mov dword [rdi + 0x14], eax
inc dword [r12 + 0x38]
mov edx, dword [r12 + 0x38]
mov r8d, dword [rdi + 0x14]
mov dword [rdi + 0x10], edx
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1400d5554
mov dword [rsp + 0x20], r9d
mov rcx, rbx
mov r9d, r8d
mov r8d, edx
mov edx, 0xa
call fcn.14007a370
xor r9d, r9d
jmp 0x1400d557e
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi]
mov dword [rax + rcx*8], 0xa
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rdi + 0xc]
cmp dword [rbx + 0x94], ecx
jg 0x1400d55ad
mov dword [rsp + 0x20], r9d
mov r8d, edx
xor r9d, r9d
mov edx, 0x92
mov rcx, rbx
call fcn.14007a370
xor r9d, r9d
jmp 0x1400d55d6
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi]
mov dword [rax + rcx*8], __WSAFDIsSet
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r9
mov r14d, dword [rsp + 0xb0]
test r14d, r14d
je 0x1400d563b
movsxd rcx, dword [rbx + 0x90]
mov r8d, dword [rdi + 0x1c]
cmp dword [rbx + 0x94], ecx
jg 0x1400d5610
mov dword [rsp + 0x20], r9d
mov edx, reloc.WS2_32.dll_recvfrom
mov r9d, r8d
mov rcx, rbx
mov r8d, r14d
call fcn.14007a370
jmp 0x1400d563b
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi]
mov dword [rax + rcx*8], reloc.WS2_32.dll_recvfrom
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x67], 0
je 0x1400d5656
lea r13, [0x1402e59d0]
mov rax, r13
jmp 0x1400d566b
movsxd rax, r13d
lea r13, [0x1402e59d0]
lea rcx, [rax + rax*2]
mov rax, qword [rsi]
lea rax, [rax + rcx*8]
mov r9d, dword [rsp + 0xa8]
mov dword [rax + 8], edx
mov r10, qword [r12 + 0x10]
mov r8d, dword [rdi + 8]
movsxd rcx, dword [r10 + 0x90]
cmp dword [r10 + 0x94], ecx
jg 0x1400d56a6
mov dword [rsp + 0x20], r8d
mov edx, reloc.WLDAP32.dll_Ordinal_79
mov r8d, r15d
mov rcx, r10
call fcn.14007a370
jmp 0x1400d56d8
lea eax, [rcx + 1]
xor edx, edx
mov dword [r10 + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r10 + 0x88]
mov dword [rax + rcx*8], reloc.WLDAP32.dll_Ordinal_79
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], rdx
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x67], 0
je 0x1400d56ef
mov rax, r13
mov dword [rax + 8], edx
jmp 0x1400d5716
mov rax, qword [rsi]
lea rcx, [rbp*2]
add rcx, rbp
mov dword [rax + rcx*8 + 8], edx
lea rax, [rax + rcx*8]
jmp 0x1400d5716
mov r14d, dword [rsp + 0xb0]
lea rsi, [rbx + 0x88]
test r14d, r14d
je 0x1400d58ab
movsxd rcx, dword [rbx + 0x90]
mov ebp, dword [rdi + 0xc]
lea edx, [rcx + 4]
cmp dword [rbx + 0x94], ecx
jg 0x1400d5753
xor eax, eax
mov r9d, edx
mov r8d, r14d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 0x3c]
call fcn.14007a370
xor r10d, r10d
mov r14, rsi
jmp 0x1400d578f
mov r8d, dword [rsp + 0xb0]
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
xor r10d, r10d
lea r14, [rbx + 0x88]
mov rax, qword [r14]
mov dword [rax + rcx*8], reloc.WLDAP32.dll_Ordinal_60
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r10d
mov qword [rax + rcx*8 + 0x10], r10
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1400d57ba
xor r9d, r9d
mov dword [rsp + 0x20], r10d
mov r8d, ebp
mov rcx, rbx
lea edx, [r9 + 0x20]
call fcn.14007a370
xor r10d, r10d
jmp 0x1400d57e3
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14]
mov dword [rax + rcx*8], reloc.WLDAP32.dll_Ordinal_32
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r10
mov eax, dword [rsp + 0x80]
movsxd r8, dword [rbx + 0x90]
mov r9d, dword [rsp + 0x34]
sub r9d, eax
mov dword [rsp + 0x30], r8d
lea edx, [r15 + rax]
cmp dword [rbx + 0x94], r8d
jg 0x1400d582f
mov dword [rsp + 0x28], r9d
mov r8d, ebp
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov rcx, rbx
lea edx, [r9 + 0x28]
call fcn.14007a3d0
mov dword [rsp + 0x30], eax
xor r10d, r10d
jmp 0x1400d5859
lea rcx, [r8 + r8*2]
lea eax, [r8 + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [r14]
mov dword [rax + rcx*8], 0xfd28
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], r10d
mov dword [rax + rcx*8 + 0xc], edx
mov dword [rax + rcx*8 + 0x10], r9d
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1400d5882
xor r9d, r9d
mov dword [rsp + 0x20], r10d
mov r8d, ebp
mov edx, 0x82
mov rcx, rbx
call fcn.14007a370
jmp 0x1400d58ab
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14]
mov dword [rax + rcx*8], 0x82
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r10
mov r11d, dword [rsp + 0x38]
test r11d, r11d
jne 0x1400d58d9
mov eax, dword [rsp + 0x88]
mov r9d, r15d
mov r8, qword [rsp + 0x90]
mov rdx, rdi
mov rcx, r12
mov dword [rsp + 0x20], eax
call fcn.1400d5000
mov r11d, eax
mov eax, dword [rsp + 0x80]
movzx edx, byte [rdi + 0x24]
mov r10d, dword [rsp + 0x88]
and edx, 1
movsxd rcx, dword [rbx + 0x90]
add edx, 0x8a
mov r8d, dword [rdi + 0xc]
lea r9d, [r15 + rax]
sub r10d, eax
cmp dword [rbx + 0x94], ecx
jg 0x1400d5926
mov dword [rsp + 0x28], r10d
mov rcx, rbx
mov dword [rsp + 0x20], r9d
mov r9d, r11d
call fcn.14007a3d0
jmp 0x1400d5959
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi]
mov byte [rax + rcx*8], dl
xor edx, edx
mov word [rax + rcx*8 + 2], dx
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r11d
mov dword [rax + rcx*8 + 0xc], r9d
mov dword [rax + rcx*8 + 0x10], r10d
mov byte [rax + rcx*8 + 1], 0xfd
movsxd rcx, dword [rsp + 0x30]
test ecx, ecx
je 0x1400d5987
mov edx, dword [rdi + 0x20]
test edx, edx
jne 0x1400d596f
mov edx, dword [rbx + 0x90]
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
jne 0x1400d5983
mov rax, qword [rsi]
lea rcx, [rcx + rcx*2]
lea r13, [rax + rcx*8]
mov dword [r13 + 8], edx
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret