Function at 0x5007f0
Capabilities:
Check for time delay via gettickcount
Check os version
Get memory capacity
Link many functions at runtime

Disassembly:
mov eax, CAsyncSocket::DetachHandle
call fcn.005555e0
sub rsp, rax
mov qword [rsp + reloc.MFC42u.dll_DFX_DateTime], rbx
mov qword [rsp + 0x9a8], rsi
mov qword [rsp + 0x9b0], rdi
mov qword [rsp + 0x9b8], r12
mov qword [rsp + 0x990], r13
mov qword [rsp + 0x988], r14
mov qword [rsp + 0x980], r15
movdqa xmmword [rsp + CSplitterWnd::DeleteView], xmm6
movdqa xmmword [rsp + CListBox::DeleteItem], xmm7
mov rax, qword [0x005c3458]
mov qword [rsp + reloc.MFC42u.dll_CDaoRecordset::Delete], rax
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov esi, r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x170], 0x114
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rcx, str.ADVAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
lea rcx, [0x005d72c0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x40], rax
lea rcx, str.NETAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov r15, r12
mov r14, r12
mov r13, r12
test rax, rax
je 0x5008e5
lea rdx, str.NetStatisticsGet
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rdx, str.NetApiBufferFree
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r13, r13
je 0x50096f
test r12, r12
je 0x50096f
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.LanmanWorkstation
xor ecx, ecx
call r13
test eax, eax
jne 0x500932
movlpd xmm2, qword [0x005841c8]
mov edx, 0xd8
mov rcx, qword [rsp + 0x30]
call fcn.004c3b60
mov rcx, qword [rsp + 0x30]
call r12
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.LanmanServer
xor ecx, ecx
call r13
test eax, eax
jne 0x50096f
movlpd xmm2, qword [0x005841c0]
lea edx, [rax + 0x44]
mov rcx, qword [rsp + 0x30]
call fcn.004c3b60
mov rcx, qword [rsp + 0x30]
call r12
test rbx, rbx
je 0x50097d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rdi, rdi
je 0x5009bd
lea rdx, str.CryptAcquireContextW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
lea rdx, str.CryptGenRandom
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.CryptReleaseContext
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
jmp 0x5009c0
mov r12, rsi
test r12, r12
je 0x500aaf
test r15, r15
je 0x500aaf
test r14, r14
je 0x500aaf
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x58]
call r12
test eax, eax
je 0x500a3d
lea r8, [rsp + 0x910]
mov ebx, 0x40
mov edx, ebx
mov rcx, qword [rsp + 0x58]
call r15
test eax, eax
je 0x500a31
xorpd xmm2, xmm2
mov edx, ebx
lea rcx, [rsp + 0x910]
call fcn.004c3b60
mov esi, 1
mov dword [rsp + 0x38], esi
xor edx, edx
mov rcx, qword [rsp + 0x58]
call r14
jmp 0x500a42
mov ebx, 0x40
mov dword [rsp + 0x20], 0
mov r9d, socket
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
xor edx, edx
lea rcx, [rsp + 0x58]
call r12
test eax, eax
je 0x500aaf
lea r8, [rsp + 0x910]
mov edx, ebx
mov rcx, qword [rsp + 0x58]
call r15
test eax, eax
je 0x500aa5
cvtsi2sd xmm2, rbx
test rbx, rbx
jns 0x500a8d
addsd xmm2, qword [0x005841b8]
mov edx, ebx
lea rcx, [rsp + 0x910]
call fcn.004c3b60
mov esi, 1
mov dword [rsp + 0x38], esi
xor edx, edx
mov rcx, qword [rsp + 0x58]
call r14
test rdi, rdi
je 0x500abd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x180], 2
jne 0x500ad4
call fcn.00473060
test eax, eax
jne 0x500bd1
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x500bd1
lea rdx, str.GetForegroundWindow
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rdx, str.GetCursorInfo
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.GetQueueStatus
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r13, r13
je 0x500b46
call r13
mov qword [rsp + 0x50], rax
xorpd xmm2, xmm2
mov edx, 8
lea rcx, [rsp + 0x50]
call fcn.004c3b60
test rbx, rbx
je 0x500b66
cmp dword [rsp + 0x180], 2
jne 0x500b66
cmp dword [rsp + 0x174], 5
mov eax, 0
cmovb rbx, rax
test rbx, rbx
je 0x500ba0
mov dword [rsp + 0xb0], 0x18
lea rcx, [rsp + 0xb0]
call rbx
test eax, eax
je 0x500ba0
movlpd xmm2, qword [0x005841b0]
mov edx, dword [rsp + 0xb0]
lea rcx, [rsp + 0xb0]
call fcn.004c3b60
test r12, r12
je 0x500bc8
mov ecx, 0xbf
call r12
mov dword [rsp + 0x48], eax
movlpd xmm2, qword [0x005668b0]
mov edx, 4
lea rcx, [rsp + 0x48]
call fcn.004c3b60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r15, qword [rsp + 0x40]
test r15, r15
je 0x5010d5
xor edi, edi
mov dword [rsp + 0x30], edi
lea rdx, [0x005d7470]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
lea rdx, str.CloseToolhelp32Snapshot
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
lea rdx, str.Heap32First
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
mov qword [rsp + 0xd0], rax
lea rdx, str.Heap32Next
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov qword [rsp + 0xd8], rax
lea rdx, str.Heap32ListFirst
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.Heap32ListNext
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
mov qword [rsp + 0xe0], rax
lea rdx, str.Process32First
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
lea rdx, str.Process32Next
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
lea rdx, str.Thread32First
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x88], rax
lea rdx, str.Thread32Next
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
lea rdx, [0x005d7528]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
lea rdx, [0x005d7538]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xe8], rax
test r12, r12
je 0x5010ca
test r13, r13
je 0x5010ca
test r14, r14
je 0x5010ca
test rbx, rbx
je 0x5010ca
test r15, r15
je 0x5010ca
cmp qword [rsp + 0x78], rdi
je 0x5010ca
mov r13, qword [rsp + 0x70]
test r13, r13
je 0x5010ca
cmp qword [rsp + 0x88], rdi
je 0x5010ca
cmp qword [rsp + 0x80], rdi
je 0x5010ca
cmp qword [rsp + 0x50], rdi
je 0x5010ca
test rax, rax
je 0x5010ca
xor edx, edx
lea ecx, [rdi + 0xf]
call r12
mov r12, rax
mov qword [rsp + 0xf0], rax
cmp rax, 0xffffffffffffffff
je 0x5010ca
xor eax, eax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x90], 0x20
test esi, esi
je 0x500dd5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x90]
mov rcx, r12
call rbx
test eax, eax
je 0x500f3e
mov r13d, 0x2a
mov dword [rsp + 0x60], r13d
movlpd xmm6, qword [0x005841a8]
nop
movlpd xmm2, qword [0x005841a0]
mov edx, dword [rsp + 0x90]
lea rcx, [rsp + 0x90]
call fcn.004c3b60
nop
xor eax, eax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x128], rax
mov qword [rsp + 0xf8], reloc.WS2_32.dll_getservbyport
mov r8, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x98]
lea rcx, [rsp + 0xf8]
call qword [rsp + 0xd0]
test eax, eax
je 0x500ed4
mov ebx, 0x50
mov dword [rsp + 0x64], ebx
nop
movsd xmm2, xmm6
mov edx, dword [rsp + 0xf8]
lea rcx, [rsp + 0xf8]
call fcn.004c3b60
lea rcx, [rsp + 0xf8]
call r14
test eax, eax
je 0x500ed4
test esi, esi
je 0x500eca
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x3e8
jae 0x500ed4
dec ebx
mov dword [rsp + 0x64], ebx
test ebx, ebx
jg 0x500e90
jmp 0x500f0b
lea rdx, [rsp + 0x90]
mov rcx, r12
call r15
test eax, eax
je 0x500f39
test esi, esi
je 0x500f30
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x3e8
jae 0x500f39
test r13d, r13d
jg 0x500e00
mov r13, qword [rsp + 0x70]
mov dword [rsp + 0x290], 0x238
test esi, esi
je 0x500f55
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
movsxd rbx, esi
lea rdx, [rsp + 0x290]
mov rcx, r12
call qword [rsp + 0x78]
test eax, eax
je 0x500fb2
movlpd xmm6, qword [0x00584198]
movsd xmm2, xmm6
mov edx, dword [rsp + 0x290]
lea rcx, [rsp + 0x290]
call fcn.004c3b60
lea rdx, [rsp + 0x290]
mov rcx, r12
call r13
test eax, eax
je 0x500fba
test esi, esi
je 0x500f73
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x3e8
jb 0x500f73
jmp 0x500fba
movlpd xmm6, qword [0x00584198]
mov dword [rsp + 0xb0], 0x1c
test esi, esi
je 0x500fd1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
lea rdx, [rsp + 0xb0]
mov rcx, r12
call qword [rsp + 0x88]
test eax, eax
je 0x501041
movlpd xmm7, qword [0x00584190]
mov rsi, qword [rsp + 0x80]
nop
nop
nop
movsd xmm2, xmm7
mov edx, dword [rsp + 0xb0]
lea rcx, [rsp + 0xb0]
call fcn.004c3b60
lea rdx, [rsp + 0xb0]
mov rcx, r12
call rsi
test eax, eax
je 0x50103d
test rbx, rbx
je 0x501000
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x3e8
jb 0x501000
mov esi, dword [rsp + 0x38]
mov dword [rsp + 0x4d0], 0x438
test esi, esi
je 0x501058
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
lea rdx, [rsp + 0x4d0]
mov rcx, r12
call qword [rsp + 0x50]
test eax, eax
je 0x5010b0
mov rsi, qword [rsp + 0xe8]
movsd xmm2, xmm6
mov edx, dword [rsp + 0x4d0]
lea rcx, [rsp + 0x4d0]
call fcn.004c3b60
lea rdx, [rsp + 0x4d0]
mov rcx, r12
call rsi
test eax, eax
je 0x5010b0
test rbx, rbx
je 0x501073
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x3e8
jb 0x501073
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x5010c1
mov rcx, r12
call rax
jmp 0x5010ca
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [reloc.WS2_32.dll_accept]
test eax, eax
je 0x50110f
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x5010f6
mov dword [reloc.WS2_32.dll_accept], eax
jmp 0x50110f
xorpd xmm2, xmm2
mov edx, 8
lea rcx, [rsp + 0x68]
call fcn.004c3b60
mov eax, dword [reloc.WS2_32.dll_accept]
test eax, eax
jne 0x501130
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x30], eax
xorpd xmm2, xmm2
mov edx, 4
lea rcx, [rsp + 0x30]
call fcn.004c3b60
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
movlpd xmm6, qword [0x005668b0]
movsd xmm2, xmm6
mov edx, reloc.WS2_32.dll_getservbyport
lea rcx, [rsp + 0x130]
call fcn.004c3b60
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x48], eax
movsd xmm2, xmm6
mov edx, 4
lea rcx, [rsp + 0x48]
call fcn.004c3b60
mov eax, 1
mov rcx, qword [rsp + reloc.MFC42u.dll_CDaoRecordset::Delete]
call fcn.005555b0
mov rbx, qword [rsp + reloc.MFC42u.dll_DFX_DateTime]
mov rsi, qword [rsp + 0x9a8]
mov rdi, qword [rsp + 0x9b0]
mov r12, qword [rsp + 0x9b8]
mov r13, qword [rsp + 0x990]
mov r14, qword [rsp + 0x988]
mov r15, qword [rsp + 0x980]
movdqa xmm6, xmmword [rsp + 0x970]
movdqa xmm7, xmmword [rsp + 0x960]
add rsp, 0x998
ret