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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x98
mov qword [rcx + 8], rdx
lea r10, [rdx + 4]
xor ebx, ebx
mov dword [rcx + 0x10], r8d
mov qword [rcx + 0x40], rbx
lea r14d, [r8 + 0xc]
mov eax, r8d
mov rdi, rdx
add r10, rax
mov qword [rcx + 0x48], rbx
mov r15, rcx
mov qword [rbp - 1], r10
mov edx, ebx
movzx r9d, byte [r10]
movzx eax, byte [r10 + 1]
shl r9d, 8
add r9d, eax
je 0x140039b7d
nop word [rax + rax]
mov ecx, edx
shl ecx, 4
add ecx, r14d
add rcx, rdi
cmp byte [rcx], 0x63
jne 0x140039b76
cmp byte [rcx + 1], 0x6d
jne 0x140039b76
cmp byte [rcx + 2], 0x61
jne 0x140039b76
cmp byte [rcx + 3], 0x70
je 0x140039dde
inc edx
cmp edx, r9d
jl 0x140039b50
mov dword [rbp - 5], ebx
mov r8d, r14d
mov edx, ebx
mov esi, ebx
test r9d, r9d
je 0x140039bbd
nop dword [rax]
mov ecx, edx
shl ecx, 4
add ecx, r8d
add rcx, rdi
cmp byte [rcx], 0x6c
jne 0x140039bb6
cmp byte [rcx + 1], 0x6f
jne 0x140039bb6
cmp byte [rcx + 2], 0x63
jne 0x140039bb6
cmp byte [rcx + 3], 0x61
je 0x140039e0a
inc edx
cmp edx, r9d
jl 0x140039b90
mov r13d, ebx
mov dword [r15 + 0x18], r13d
mov edx, ebx
movzx r8d, byte [r10]
movzx eax, byte [r10 + 1]
shl r8d, 8
add r8d, eax
je 0x140039c0d
nop dword [rax + rax]
mov ecx, edx
shl ecx, 4
add ecx, r14d
add rcx, rdi
cmp byte [rcx], 0x68
jne 0x140039c06
cmp byte [rcx + 1], 0x65
jne 0x140039c06
cmp byte [rcx + 2], 0x61
jne 0x140039c06
cmp byte [rcx + 3], 0x64
je 0x140039e33
inc edx
cmp edx, r8d
jl 0x140039be0
mov r12d, ebx
mov dword [r15 + 0x1c], r12d
mov edx, ebx
movzx r8d, byte [r10]
movzx eax, byte [r10 + 1]
shl r8d, 8
add r8d, eax
je 0x140039c5d
nop dword [rax + rax]
mov ecx, edx
shl ecx, 4
add ecx, r14d
add rcx, rdi
cmp byte [rcx], 0x67
jne 0x140039c56
cmp byte [rcx + 1], 0x6c
jne 0x140039c56
cmp byte [rcx + 2], 0x79
jne 0x140039c56
cmp byte [rcx + 3], 0x66
je 0x140039e5c
inc edx
cmp edx, r8d
jl 0x140039c30
mov r11d, ebx
mov dword [r15 + 0x20], r11d
mov edx, ebx
movzx r8d, byte [r10]
movzx eax, byte [r10 + 1]
shl r8d, 8
add r8d, eax
je 0x140039cad
nop dword [rax + rax]
mov ecx, edx
shl ecx, 4
add ecx, r14d
add rcx, rdi
cmp byte [rcx], 0x68
jne 0x140039ca6
cmp byte [rcx + 1], 0x68
jne 0x140039ca6
cmp byte [rcx + 2], 0x65
jne 0x140039ca6
cmp byte [rcx + 3], 0x61
je 0x140039e85
inc edx
cmp edx, r8d
jl 0x140039c80
mov r9d, ebx
mov dword [r15 + 0x24], r9d
mov edx, ebx
movzx r8d, byte [r10]
movzx eax, byte [r10 + 1]
shl r8d, 8
add r8d, eax
je 0x140039cfd
nop dword [rax + rax]
mov ecx, edx
shl ecx, 4
add ecx, r14d
add rcx, rdi
cmp byte [rcx], 0x68
jne 0x140039cf6
cmp byte [rcx + 1], 0x6d
jne 0x140039cf6
cmp byte [rcx + 2], 0x74
jne 0x140039cf6
cmp byte [rcx + 3], 0x78
je 0x140039eae
inc edx
cmp edx, r8d
jl 0x140039cd0
mov r8d, ebx
mov dword [r15 + 0x28], r8d
mov edx, ebx
movzx ecx, byte [r10]
movzx r10d, byte [r10 + 1]
shl ecx, 8
add r10d, ecx
je 0x140039d4d
nop word [rax + rax]
mov ecx, edx
shl ecx, 4
add ecx, r14d
add rcx, rdi
cmp byte [rcx], 0x6b
jne 0x140039d46
cmp byte [rcx + 1], 0x65
jne 0x140039d46
cmp byte [rcx + 2], 0x72
jne 0x140039d46
cmp byte [rcx + 3], 0x6e
je 0x140039ed7
inc edx
cmp edx, r10d
jl 0x140039d20
mov edx, ebx
mov rax, qword [rbp - 1]
mov dword [r15 + 0x2c], edx
mov edx, ebx
movzx r10d, byte [rax]
movzx eax, byte [rax + 1]
shl r10d, 8
add r10d, eax
je 0x140039d9d
nop word [rax + rax]
mov ecx, edx
shl ecx, 4
add ecx, r14d
add rcx, rdi
cmp byte [rcx], 0x47
jne 0x140039d96
cmp byte [rcx + 1], 0x50
jne 0x140039d96
cmp byte [rcx + 2], 0x4f
jne 0x140039d96
cmp byte [rcx + 3], 0x53
je 0x140039efb
inc edx
cmp edx, r10d
jl 0x140039d70
mov edx, ebx
mov dword [r15 + 0x30], edx
test esi, esi
je 0x140039dc8
test r12d, r12d
je 0x140039dc8
test r9d, r9d
je 0x140039dc8
test r8d, r8d
je 0x140039dc8
test r11d, r11d
je 0x140039f1f
test r13d, r13d
jne 0x14003a35c
xor eax, eax
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
movzx esi, byte [rcx + 9]
mov r8d, r14d
movzx eax, byte [rcx + 0xa]
mov edx, ebx
shl eax, 8
shl esi, 0x10
add esi, eax
movzx eax, byte [rcx + 8]
shl eax, 0x18
add esi, eax
movzx eax, byte [rcx + 0xb]
add esi, eax
mov dword [rbp - 5], esi
jmp 0x140039b90
movzx r13d, byte [rcx + 9]
movzx eax, byte [rcx + 0xa]
shl eax, 8
shl r13d, 0x10
add r13d, eax
movzx eax, byte [rcx + 8]
shl eax, 0x18
add r13d, eax
movzx eax, byte [rcx + 0xb]
add r13d, eax
jmp 0x140039bc0
movzx r12d, byte [rcx + 9]
movzx eax, byte [rcx + 0xa]
shl eax, 8
shl r12d, 0x10
add r12d, eax
movzx eax, byte [rcx + 8]
shl eax, 0x18
add r12d, eax
movzx eax, byte [rcx + 0xb]
add r12d, eax
jmp 0x140039c10
movzx r11d, byte [rcx + 9]
movzx eax, byte [rcx + 0xa]
shl eax, 8
shl r11d, 0x10
add r11d, eax
movzx eax, byte [rcx + 8]
shl eax, 0x18
add r11d, eax
movzx eax, byte [rcx + 0xb]
add r11d, eax
jmp 0x140039c60
movzx r9d, byte [rcx + 9]
movzx eax, byte [rcx + 0xa]
shl eax, 8
shl r9d, 0x10
add r9d, eax
movzx eax, byte [rcx + 8]
shl eax, 0x18
add r9d, eax
movzx eax, byte [rcx + 0xb]
add r9d, eax
jmp 0x140039cb0
movzx r8d, byte [rcx + 9]
movzx eax, byte [rcx + 0xa]
shl eax, 8
shl r8d, 0x10
add r8d, eax
movzx eax, byte [rcx + 8]
shl eax, 0x18
add r8d, eax
movzx eax, byte [rcx + 0xb]
add r8d, eax
jmp 0x140039d00
movzx edx, byte [rcx + 9]
movzx eax, byte [rcx + 0xa]
shl eax, 8
shl edx, 0x10
add edx, eax
movzx eax, byte [rcx + 8]
shl eax, 0x18
add edx, eax
movzx eax, byte [rcx + 0xb]
add edx, eax
jmp 0x140039d4f
movzx edx, byte [rcx + 9]
movzx eax, byte [rcx + 0xa]
shl eax, 8
shl edx, 0x10
add edx, eax
movzx eax, byte [rcx + 8]
shl eax, 0x18
add edx, eax
movzx eax, byte [rcx + 0xb]
add edx, eax
jmp 0x140039d9f
mov rax, qword [rbp - 1]
mov edx, ebx
mov dword [rbp + 0x67], 2
mov dword [rbp + 0x6f], ebx
mov dword [rbp + 0x7f], ebx
movzx r8d, byte [rax]
movzx eax, byte [rax + 1]
shl r8d, 8
mov dword [rbp - 9], ebx
add r8d, eax
je 0x140039dc8
nop word [rax + rax]
mov ecx, edx
shl ecx, 4
add ecx, r14d
add rcx, rdi
cmp byte [rcx], 0x43
jne 0x140039f72
cmp byte [rcx + 1], 0x46
jne 0x140039f72
cmp byte [rcx + 2], 0x46
jne 0x140039f72
cmp byte [rcx + 3], 0x20
je 0x140039f7e
inc edx
cmp edx, r8d
jl 0x140039f50
jmp 0x140039dc8
movzx edx, byte [rcx + 9]
movzx eax, byte [rcx + 0xa]
shl eax, 8
shl edx, 0x10
add edx, eax
movzx eax, byte [rcx + 8]
shl eax, 0x18
add edx, eax
movzx eax, byte [rcx + 0xb]
add edx, eax
je 0x140039dc8
mov qword [r15 + 0x80], rbx
mov qword [r15 + 0x88], rbx
mov qword [r15 + 0x90], rbx
mov qword [r15 + 0x98], rbx
mov eax, edx
add rax, rdi
mov qword [r15 + 0x40], rax
mov dword [r15 + 0x48], ebx
mov dword [r15 + 0x4c], 0x20000000
movups xmm2, xmmword [r15 + 0x40]
mov ecx, dword [r15 + 0x48]
mov rax, qword [r15 + 0x48]
add ecx, 2
movdqa xmm0, xmm2
shr rax, 0x20
psrldq xmm0, 0xc
movd r8d, xmm0
movaps xmmword [rbp - 0x39], xmm2
cmp ecx, eax
jg 0x14003a015
test ecx, ecx
js 0x14003a015
cmp ecx, r8d
jge 0x14003a015
movsxd rcx, ecx
movq rax, xmm2
movzx edx, byte [rcx + rax]
jmp 0x14003a017
xor dl, dl
movzx eax, dl
lea rcx, [rbp - 0x29]
cmp eax, r8d
lea rdx, [rbp - 0x39]
cmovle r8d, eax
mov dword [rbp - 0x31], r8d
call fcn.140039210
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.140039210
xor r8d, r8d
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x29], xmm0
call fcn.140039700
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x29]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x49], xmm0
call fcn.140039210
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.140039210
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x29]
movups xmm0, xmmword [rax]
movups xmmword [r15 + 0x60], xmm0
call fcn.140039570
mov rsi, rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x59], xmm0
nop dword [rax]
mov eax, dword [rbp - 0x4d]
cmp dword [rbp - 0x51], eax
jge 0x14003a0be
lea rcx, [rbp - 0x59]
call fcn.140039330
mov dword [rbp + rsi*4 + 0x6f], eax
inc rsi
cmp rsi, 1
jl 0x14003a0a0
mov r8d, 0x106
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x29]
call fcn.140039570
mov rsi, rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x59], xmm0
nop dword [rax + rax]
mov eax, dword [rbp - 0x4d]
cmp dword [rbp - 0x51], eax
jge 0x14003a0fe
lea rcx, [rbp - 0x59]
call fcn.140039330
mov dword [rbp + rsi*4 + 0x67], eax
inc rsi
cmp rsi, 1
jl 0x14003a0e0
mov r8d, 0x124
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x29]
call fcn.140039570
mov rsi, rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x59], xmm0
nop dword [rax + rax]
mov eax, dword [rbp - 0x4d]
cmp dword [rbp - 0x51], eax
jge 0x14003a13e
lea rcx, [rbp - 0x59]
call fcn.140039330
mov dword [rbp + rsi*4 + 0x7f], eax
inc rsi
cmp rsi, 1
jl 0x14003a120
mov r8d, 0x125
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x29]
call fcn.140039570
mov rsi, rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x59], xmm0
nop dword [rax + rax]
mov eax, dword [rbp - 0x4d]
cmp dword [rbp - 0x51], eax
jge 0x14003a17e
lea rcx, [rbp - 0x59]
call fcn.140039330
mov dword [rbp + rsi*4 - 9], eax
inc rsi
cmp rsi, 1
jl 0x14003a160
movaps xmm0, xmmword [rbp - 0x49]
lea rdx, [rbp - 0x19]
movaps xmm1, xmmword [rbp - 0x39]
lea rcx, [rbp + 7]
mov r8d, reloc.WS2_32.dll_select
movdqa xmmword [rbp - 0x19], xmm0
movdqa xmmword [rbp - 0x29], xmm1
mov dword [rbp + 0x77], ebx
mov qword [rbp - 0x59], rbx
call fcn.140039570
mov rsi, rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x19], xmm0
mov eax, dword [rbp - 0xd]
cmp dword [rbp - 0x11], eax
jge 0x14003a1d2
lea rcx, [rbp - 0x19]
call fcn.140039330
mov dword [rbp + rsi*4 - 0x59], eax
inc rsi
cmp rsi, 2
jl 0x14003a1b4
movsxd r13, dword [rbp - 0x55]
movdqa xmm0, xmm1
psrldq xmm0, 0xc
movd r12d, xmm0
test r13d, r13d
je 0x14003a297
mov edx, dword [rbp - 0x59]
test edx, edx
je 0x14003a297
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x51], rbx
test r13d, r13d
js 0x14003a227
test edx, edx
js 0x14003a227
cmp r13d, r12d
jg 0x14003a227
mov eax, r12d
sub eax, r13d
cmp edx, eax
jg 0x14003a227
movq rcx, xmm1
mov dword [rbp - 0x4d], edx
add rcx, r13
mov qword [rbp - 0x59], rcx
movaps xmm0, xmmword [rbp - 0x59]
lea rdx, [rbp - 0x19]
mov r8d, reloc.WS2_32.dll_send
movdqa xmmword [rbp - 0x19], xmm0
lea rcx, [rbp - 0x59]
call fcn.140039570
mov rsi, rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x19], xmm0
nop dword [rax]
mov eax, dword [rbp - 0xd]
cmp dword [rbp - 0x11], eax
jge 0x14003a26e
lea rcx, [rbp - 0x19]
call fcn.140039330
mov dword [rbp + rsi*4 + 0x77], eax
inc rsi
cmp rsi, 1
jl 0x14003a250
mov eax, dword [rbp + 0x77]
test eax, eax
je 0x14003a297
add eax, r13d
cmp eax, r12d
jg 0x14003a284
mov dword [rbp - 0x21], eax
test eax, eax
jns 0x14003a288
mov dword [rbp - 0x21], r12d
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x49]
call fcn.140039210
jmp 0x14003a29f
mov qword [rbp - 0x41], rbx
mov qword [rbp - 0x49], rbx
cmp dword [rbp + 0x67], 2
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [r15 + 0x70], xmm0
jne 0x140039dc8
mov r13d, dword [rbp + 0x6f]
test r13d, r13d
je 0x140039dc8
mov eax, dword [rbp + 0x7f]
test eax, eax
je 0x14003a332
movsxd rsi, dword [rbp - 9]
test esi, esi
je 0x140039dc8
cmp eax, r12d
jg 0x14003a2de
mov dword [rbp - 0x31], eax
test eax, eax
jns 0x14003a2e2
mov dword [rbp - 0x31], r12d
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.140039210
mov r12d, dword [rbp - 0x2d]
mov ecx, r12d
sub ecx, esi
mov qword [rbp - 0x49], rbx
mov qword [rbp - 0x41], rbx
movups xmm0, xmmword [rax]
movups xmmword [r15 + 0x80], xmm0
test esi, esi
js 0x14003a326
test ecx, ecx
js 0x14003a326
cmp esi, r12d
jg 0x14003a326
mov rax, rsi
mov dword [rbp - 0x3d], ecx
add rax, qword [rbp - 0x39]
mov qword [rbp - 0x49], rax
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [r15 + 0x90], xmm0
cmp r13d, r12d
jg 0x14003a340
mov dword [rbp - 0x31], r13d
test r13d, r13d
jns 0x14003a344
mov dword [rbp - 0x31], r12d
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.140039210
mov esi, dword [rbp - 5]
movups xmm0, xmmword [rax]
movups xmmword [r15 + 0x50], xmm0
mov rax, qword [rbp - 1]
mov edx, ebx
movzx r8d, byte [rax]
movzx eax, byte [rax + 1]
shl r8d, 8
add r8d, eax
je 0x14003a3ad
nop dword [rax]
nop word [rax + rax]
mov ecx, edx
shl ecx, 4
add ecx, r14d
add rcx, rdi
cmp byte [rcx], 0x6d
jne 0x14003a3a6
cmp byte [rcx + 1], 0x61
jne 0x14003a3a6
cmp byte [rcx + 2], 0x78
jne 0x14003a3a6
cmp byte [rcx + 3], 0x70
je 0x14003a478
inc edx
cmp edx, r8d
jl 0x14003a380
mov ecx, 0xffff
mov dword [r15 + 0x14], ecx
mov eax, esi
mov dword [r15 + 0x34], 0xffffffff
movzx ecx, byte [rax + rdi + 2]
movzx r9d, byte [rax + rdi + 3]
shl ecx, 8
mov dword [r15 + 0x38], ebx
add r9d, ecx
je 0x14003a44c
nop word [rax + rax]
lea r8d, [rbx*8 + 4]
add r8d, esi
add r8, rdi
movzx eax, byte [r8]
movzx edx, byte [r8 + 1]
shl eax, 8
add edx, eax
je 0x14003a41c
cmp edx, 3
jne 0x14003a445
movzx eax, byte [r8 + 2]
movzx ecx, byte [r8 + 3]
shl eax, 8
add ecx, eax
sub ecx, 1
je 0x14003a41c
cmp ecx, 9
jne 0x14003a445
movzx eax, byte [r8 + 4]
movzx edx, byte [r8 + 5]
movzx ecx, byte [r8 + 7]
shl eax, 8
add edx, eax
movzx eax, byte [r8 + 6]
shl edx, 8
add eax, edx
shl eax, 8
add eax, esi
add ecx, eax
mov dword [r15 + 0x38], ecx
inc ebx
cmp ebx, r9d
jl 0x14003a3e0
cmp dword [r15 + 0x38], 0
je 0x140039dc8
movsxd rax, dword [r15 + 0x1c]
movzx ecx, byte [rax + rdi + 0x32]
movzx eax, byte [rax + rdi + 0x33]
shl ecx, 8
add ecx, eax
mov eax, 1
mov dword [r15 + 0x3c], ecx
jmp 0x140039dca
movzx edx, byte [rcx + 9]
movzx eax, byte [rcx + 0xa]
shl eax, 8
shl edx, 0x10
add edx, eax
movzx eax, byte [rcx + 8]
shl eax, 0x18
add edx, eax
movzx eax, byte [rcx + 0xb]
add edx, eax
je 0x14003a3ad
movzx ecx, byte [rdx + rdi + 4]
movzx eax, byte [rdx + rdi + 5]
shl ecx, 8
add ecx, eax
jmp 0x14003a3b2