Function at 0x140031b90
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub rsp, 0x28
cmp dword [0x1406e11e0], 0
je 0x1400224eb
xor edx, edx
lea rcx, [0x140041910]
call fcn.140016e40
mov eax, dword [0x1406e11c8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [0x1406df03b], 0
cmp eax, 1
je 0x140022751
cmp qword [0x1406e11a0], 0
je 0x14002255c
mov rcx, qword [0x1406de5d0]
mov r8, qword [0x1406e1198]
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
sub rax, rdx
cmp rax, r8
jb 0x140022731
add rdx, r8
xor r8d, r8d
call fcn.140034c90
test eax, eax
je 0x140022731
cmp byte [0x1406df03b], 0
jne 0x140022731
mov eax, dword [0x1406e11c8]
test eax, eax
jne 0x140022728
cmp dword [0x1406e11e0], eax
jne 0x140022728
cmp qword [0x1406e11a8], 0
je 0x140022728
xor edi, edi
mov dword [0x1406de874], 1
mov qword [0x1406e11f0], rdi
call fcn.140030f10
test eax, eax
jne 0x1400225f8
mov rbx, qword [0x1406cc918]
test rbx, rbx
je 0x1400225ee
nop word [rax + rax]
mov rdx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov rcx, qword [0x1406e11e8]
sub rax, rdx
cmp rax, rcx
jb 0x1400225e1
add rdx, rcx
xor r8d, r8d
mov rcx, rbx
mov edi, 1
call fcn.140034c90
test eax, eax
je 0x140022731
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x1400225b0
test edi, edi
jne 0x1400225f8
mov dword [0x1406de874], 2
cmp byte [0x1406df03b], 0
jne 0x140022731
mov eax, dword [0x1406e11c8]
test eax, eax
jne 0x140022728
cmp dword [0x1406de874], 2
jne 0x1400226fd
mov rcx, qword [0x1406de9f0]
xor edx, edx
mov r8, qword [0x1406e11e8]
add r8, 0x1030
add r8, rcx
mov rax, r8
div rcx
sub r8, rdx
mov edx, 1
cmp rcx, r8
cmovbe rcx, r8
add rcx, 0xfff
and rcx, 0xfffffffffffff000
call fcn.140033ce0
mov rbx, rax
test rax, rax
je 0x1400226e9
mov rdi, qword [rax + 0x10]
or qword [rax + 0x28], 8
mov qword [rsp + 0x38], rsi
mov rsi, qword [rax + 0x20]
mov eax, dword [0x1406dcf60]
sub rdi, rsi
cmp eax, 4
jl 0x1400226af
mov eax, dword [0x1406dcf58]
test al, 1
je 0x1400226af
call fcn.14000fb10
mov r9d, 1
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov r10, qword [rax]
call qword [r10 + 0x28]
mov rdx, rbx
mov ecx, 3
call fcn.140044660
mov r9, qword [rbx + 0x10]
mov ecx, 3
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x20]
call fcn.14000a090
mov eax, dword [0x1406e11c8]
mov rsi, qword [rsp + 0x38]
mov qword [0x1406e11f0], rbx
test eax, eax
je 0x140022704
jmp 0x140022728
mov eax, 1
mov qword [0x1406e11f0], rbx
mov dword [0x1406e11c8], eax
jmp 0x140022728
mov rbx, qword [0x1406e11f0]
test rbx, rbx
je 0x140022728
mov rdx, qword [rbx]
xor r8d, r8d
add rdx, qword [0x1406e11e8]
mov rcx, rbx
call fcn.140034c90
test eax, eax
je 0x140022731
mov eax, dword [0x1406e11c8]
cmp byte [0x1406df03b], 0
je 0x140022751
mov dword [0x1406e11c8], 1
mov byte [0x1406df03b], 0
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
test eax, eax
jne 0x14002279e
cmp qword [0x1406e11a8], 0
je 0x140022774
mov rcx, qword [0x1406e11e8]
mov qword [0x1406e1450], rcx
mov qword [0x1406e1458], rcx
cmp qword [0x1406e11a0], 0
je 0x140022793
mov rax, qword [0x1406e1198]
mov qword [0x1406e1240], rax
mov qword [0x1406e1248], rax
mov qword [0x1406e11b0], 1
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
mov rax, rsp
sub rsp, 0x58
mov qword [rax + 0x18], rbp
lea rdx, [rax - 0x38]
mov qword [rax - 0x10], r12
mov ebp, ecx
mov qword [rax - 0x18], r13
lea rcx, [0x140031700]
xor r12d, r12d
mov qword [rax - 0x28], r15
mov r15d, dword [0x1406e2a30]
mov r13d, 1
mov dword [rax - 0x38], r13d
mov qword [0x1406e1190], r12
mov qword [rax - 0x30], r12
call fcn.140016e40
mov rdx, qword [0x1406de5d0]
mov rax, qword [0x1406de5c8]
mov qword [rdx], rax
cmp dword [0x1406e2a30], 4
jne 0x140031c2d
cmp dword [0x1406e11e0], r12d
je 0x140031c2d
call fcn.140030720
mov ecx, dword [0x1406e11c8]
test eax, eax
mov dword [0x1406e29f8], 2
cmove ecx, r13d
mov dword [0x1406e11c8], ecx
call fcn.140045600
inc qword [0x1406e17c8]
jmp 0x140032320
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x38], r14
call fcn.140035c80
mov rdi, qword [0x1406de860]
mov eax, dword [reloc.WS2_32.dll_closesocket]
mov dword [0x1406e2a2c], eax
mov qword [0x1406dea80], r12
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x140031c83
nop dword [rax]
mov rcx, rbx
mov rdx, r13
mov rbx, qword [rbx]
call fcn.1400b8408
test rbx, rbx
jne 0x140031c70
mov qword [rdi + 0x18], r12
mov rax, qword [0x1406de840]
cmp qword [0x1406dd290], rax
je 0x140031c9c
call fcn.14002cf00
call fcn.14003fcd0
lea r14, [0x1406cc908]
mov rbx, qword [r14]
test rbx, rbx
je 0x140031cc5
test byte [rbx + 0x28], r13b
je 0x140031cc5
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x140031cc5
test byte [rbx + 0x28], r13b
jne 0x140031cb6
mov rsi, r12
test rbx, rbx
je 0x140031d04
nop dword [rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x140031cf9
call fcn.14001a540
test al, al
mov edx, r12d
mov rcx, rbx
setne dl
call fcn.14002e3a0
mov qword [rsi + 0x30], rdi
jmp 0x140031cfc
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x140031cd0
add r14, 0x110
lea rsi, [0x1406ccb28]
cmp r14, rsi
jl 0x140031ca8
mov eax, dword [0x1406e202c]
mov r14, qword [rsp + 0x38]
test eax, eax
jne 0x140031d2b
call fcn.14003faf0
xor r9d, r9d
lea r8, [0x1406e17bc]
lea rdx, [0x1406e1b9c]
mov ecx, ebp
call fcn.140033090
mov edx, dword [0x1406e1b9c]
lea r9, [rsp + 0x68]
mov ecx, dword [0x1406e17bc]
mov r8d, eax
mov dword [rsp + 0x68], edx
mov edx, ebp
mov dword [0x1406e29f8], eax
call fcn.140037250
cmp dword [0x1406dc4f4], 4
movsxd r8, eax
mov dword [0x1406e29f8], r8d
jb 0x140031d99
mov r9, r8
mov edx, r13d
lea r8, str.condemned_generation_num:__d_n
mov ecx, recv
call fcn.140012250
mov r8d, dword [0x1406e29f8]
cmp qword [0x1406e11b0], r12
mov ecx, dword [0x1406e2a2c]
je 0x140031dc5
inc qword [0x1406e11b8]
cmp ecx, 0x11
ja 0x140031dc5
mov eax, 0x22e86
bt eax, ecx
jae 0x140031dc5
inc qword [0x1406e11c0]
mov eax, dword [0x1406e29fc]
cmp r8d, r13d
cmovg eax, r13d
cmp ecx, r13d
mov ecx, r8d
mov dword [0x1406e29fc], eax
sete dl
call fcn.14000a090
mov ecx, dword [0x1406e29f8]
cmp ecx, 2
jne 0x140031e59
cmp dword [rsp + 0x68], r12d
jne 0x140031e59
cmp byte [0x1406df038], r12b
je 0x140031e59
cmp byte [0x1406df039], r12b
jne 0x140031e59
mov eax, dword [0x1406e2a30]
dec eax
test eax, 0xfffffffd
jne 0x140031e59
mov eax, r13d
mov dword [0x1406deabc], r13d
xchg dword [0x1406e2a0c], eax
movups xmm0, xmmword [0x1406de8d8]
mov ecx, dword [0x1406e29f8]
movups xmm1, xmmword [0x1406de8e8]
movups xmmword [0x1406dedf0], xmm0
movups xmm0, xmmword [0x1406de8f8]
movups xmmword [0x1406dee00], xmm1
movups xmmword [0x1406dee10], xmm0
mov edx, dword [0x1406e1298]
inc edx
mov qword [0x1406e29f0], rdx
mov edx, 2
call fcn.14000fe20
call fcn.14002f8f0
lea rcx, str.BEGIN
call fcn.14002e600
call fcn.14001a500
test r13b, al
je 0x140031e9e
call fcn.14001a500
test al, 0x40
jne 0x140031e9e
mov ecx, r13d
call fcn.140045a00
call fcn.14001a500
cmp dword [0x1406e2a0c], r12d
je 0x1400322e9
movaps xmm0, xmmword [0x1406e29f0]
lea rcx, [0x1406df010]
movaps xmmword [0x1406e24c0], xmm0
movaps xmm0, xmmword [0x1406e2a10]
movaps xmmword [0x1406e24e0], xmm0
movaps xmm0, xmmword [0x1406e2a30]
mov dword [0x1406e2a00], r12d
movaps xmm1, xmmword [0x1406e2a00]
movaps xmmword [0x1406e24d0], xmm1
movaps xmm1, xmmword [0x1406e2a20]
movaps xmmword [0x1406e2500], xmm0
movsd xmm0, qword [0x1406e2a50]
movaps xmmword [0x1406e24f0], xmm1
movaps xmm1, xmmword [0x1406e2a40]
movsd qword [0x1406e2520], xmm0
movaps xmmword [0x1406e2510], xmm1
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [0x1406deab8], r12d
jne 0x140031f91
cmp qword [0x1406df008], r12
jne 0x140031f91
lea r9, str..NET_BGC
movzx r8d, r13b
xor edx, edx
lea rcx, [0x140028e40]
call fcn.14000f7d0
movzx eax, al
mov dword [0x1406deab8], eax
test eax, eax
je 0x140031f91
lea rcx, [0x1406df010]
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [0x1406dcf60]
cmp eax, 4
jl 0x140031f9d
mov eax, dword [0x1406dcf58]
test r13b, al
je 0x140031f9d
call fcn.14000fb10
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x38]
jmp 0x140031f9d
lea rcx, [0x1406df010]
call sub.KERNEL32.dll_LeaveCriticalSection
cmp qword [0x1406df008], r12
mov dword [0x1406df040], r13d
mov dword [0x1406df03c], r12d
je 0x14003218b
lea rdi, [0x1406cc7f8]
nop
mov rbx, qword [rdi]
test rbx, rbx
je 0x1400320c0
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r13b
jne 0x140031ff8
nop word [rax + rax]
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x1400320c0
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r13b
je 0x140031fe0
test rbx, rbx
je 0x1400320c0
mov rax, qword [rbx + 0x28]
test al, 0x40
jne 0x1400320b3
test r13b, al
je 0x140032083
mov rcx, qword [rbx + 0x20]
lea rdx, [rbx + 0x10]
mov rax, qword [0x1406dea10]
mov r8, qword [0x1406dea18]
cmp rcx, rax
jb 0x140032058
mov r9, qword [rdx]
cmp r9, r8
ja 0x140032053
mov r8, qword [0x1406de850]
mov rdx, r9
call fcn.14002b760
test eax, eax
je 0x14003218b
or qword [rbx + 0x28], 0x40
jmp 0x1400320b3
cmp rax, rcx
jbe 0x14003205b
mov rcx, rax
mov rdx, qword [rdx]
cmp r8, rdx
cmovb rdx, r8
mov r8, qword [0x1406de850]
call fcn.14002b760
test eax, eax
je 0x14003218b
or qword [rbx + 0x28], 0x80
jmp 0x1400320b3
mov r8, qword [0x1406de850]
mov rcx, rbx
mov rdx, qword [rbx + 0x10]
call fcn.14002b760
test eax, eax
je 0x14003218b
mov rax, qword [rbx + 0x28]
test al, al
jns 0x1400320ab
btr rax, 7
or rax, 0x40
mov qword [rbx + 0x28], rax
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x140032001
add rdi, 0x110
cmp rdi, rsi
jl 0x140031fc0
mov rax, qword [0x1406dea10]
mov ebx, 0xffffffff
cmp dword [0x1406e2a2c], 5
mov qword [0x1406e1120], rax
mov rax, qword [0x1406dea18]
cmove ebx, r13d
mov qword [0x1406e1128], rax
mov dword [0x1406df040], r13d
mov dword [0x1406e2a58], r13d
je 0x140032132
mov ecx, r12d
lea rdx, [0x1406e1240]
cmp qword [rdx], r12
jg 0x140032132
cmp ebx, ecx
mov eax, ecx
cmovg eax, ebx
inc ecx
add rdx, 0xb0
mov ebx, eax
cmp ecx, 2
jl 0x140032116
mov dword [0x1406de5c0], r13d
cmp ebx, 0xffffffff
jne 0x14003214b
xorps xmm0, xmm0
movdqa xmmword [0x1406cc5a0], xmm0
jmp 0x14003217b
lea rcx, [0x1406e29f0]
mov dword [0x1406df03c], r13d
call fcn.140035c20
mov rax, qword [0x1406e1298]
add rax, 2
mov dword [0x1406e29f8], ebx
mov qword [0x1406e29f0], rax
call fcn.14002f8f0
cmp dword [0x1406df03c], r12d
jne 0x1400321a2
call fcn.14002ee50
jmp 0x1400321a2
mov eax, r12d
mov dword [0x1406df040], r12d
mov dword [0x1406e2a00], r13d
xchg dword [0x1406e2a0c], eax
cmp dword [0x1406df040], r12d
je 0x1400322e9
lea rcx, [0x1406dee20]
mov edx, 3
lea rax, [0x1406e15b0]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, r13
jne 0x1400321c2
cmp dword [0x1406df03c], r12d
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
mov rax, qword [rax + 0x60]
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm1
mov qword [rcx + 0x60], rax
je 0x1400322ee
mov dword [0x1406de898], r12d
mov dword [0x1406de89c], 0x8000
mov dword [0x1406e1778], r12d
mov dword [0x1406e177c], 0x8000
call fcn.140032350
movaps xmm0, xmmword [0x1406e24c0]
movaps xmm1, xmmword [0x1406e24d0]
movaps xmmword [0x1406e29f0], xmm0
movaps xmm0, xmmword [0x1406e24e0]
movaps xmmword [0x1406e2a10], xmm0
movaps xmm0, xmmword [0x1406e2500]
movaps xmmword [0x1406e2a00], xmm1
movaps xmm1, xmmword [0x1406e24f0]
movaps xmmword [0x1406e2a30], xmm0
movsd xmm0, qword [0x1406e2520]
movaps xmmword [0x1406e2a20], xmm1
movaps xmm1, xmmword [0x1406e2510]
movsd qword [0x1406e2a50], xmm0
movaps xmmword [0x1406e2a40], xmm1
call fcn.14002ee50
jmp 0x1400322ee
call fcn.140032350
call sub.KERNEL32.dll_GetTickCount
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x60]
mov eax, eax
mov qword [0x1406de8c8], rax
mov rax, qword [0x1406e1240]
mov qword [0x1406de8d0], rax
mov qword [0x1406de878], rax
mov r13, qword [rsp + 0x40]
cmp r15d, 4
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x70]
jne 0x140032343
add rsp, 0x58
jmp 0x1400224d0
add rsp, 0x58
ret