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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x6094cb
mov eax, dword fs:[0]
push eax
sub esp, 0x728
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x6f0], eax
push ebx
push esi
push edi
mov eax, dword [0x6aae14]
xor eax, esp
push eax
lea eax, [esp + 0x738]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x4f1]
push ebx
push eax
mov dword [esp + 0x64], esi
mov byte [esp + 0x4f8], bl
call fcn.005dfd60
push 0x103
lea ecx, [esp + 0x3f5]
push ebx
push ecx
mov byte [esp + 0x3fc], bl
call fcn.005dfd60
push 0x103
lea edx, [esp + 0x2f9]
push ebx
push edx
mov byte [esp + 0x300], bl
call fcn.005dfd60
mov eax, dword [esp + 0x7c]
add esp, 0x24
mov ecx, 0x34
lea edi, [esp + 0xf4]
rep movsd dword es:[edi], dword [esi]
mov esi, 1
xor ecx, ecx
cmp dword [eax + 0xcc], esi
push ebx
push esi
setne cl
lea edx, [esp + 0x17c]
push edx
push esi
push ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ecx
mov dword [eax + 0xcc], esi
call fcn.00507920
mov dword [esp + 0x50], eax
cmp eax, ebx
je 0x5c678b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x5c678b
lea eax, [esp + 0x50]
push eax
call fcn.004dca10
jmp 0x5c6d4d
cmp byte [0x761560], bl
jne 0x5c679d
push 0x761560
call fcn.00513fd0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x761560
lea ecx, [esp + 0x4f0]
push ecx
call esi
lea edx, [esp + 0x4ec]
push edx
call fcn.004e24e0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x4f0]
push ecx
call edi
push 1
push ebx
push ebx
push ebx
lea edx, [esp + 0x4fc]
push ebx
push edx
call fcn.004e8950
add esp, 0x18
test eax, eax
je 0x5c6816
lea eax, [esp + 0x4ec]
push eax
lea ecx, [esp + 0x2e0]
push str.Missing__s_
push ecx
call fcn.005dfb23
add esp, 0xc
jmp 0x5c6d4d
push 0x761560
lea edx, [esp + 0x3e8]
push edx
call esi
lea eax, [esp + 0x3e4]
push eax
call fcn.004e24e0
add esp, 4
lea ecx, [esp + 0xf4]
push ecx
lea edx, [esp + 0x3e8]
push edx
call edi
push 4
push ebx
push 6
lea eax, [esp + 0x54]
push eax
push ebx
lea ecx, [esp + 0x2f0]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x400]
push eax
call fcn.005c4e10
add esp, 0x20
test eax, eax
jne 0x5c68ca
cmp dword [esp + 0x48], 0x1a
jne 0x5c6952
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.005c51b0
lea edx, [esp + 0x3e8]
push edx
mov dword [esp + 0x44], ebx
call fcn.004e0670
push 5
push ebx
push 6
lea eax, [esp + 0x5c]
push eax
push ebx
lea ecx, [esp + 0x2f8]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x408]
push eax
call fcn.005c4e10
add esp, 0x28
cmp eax, 1
jne 0x5c6952
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x2dc]
push edx
push 0x662d60
push eax
call fcn.005c62d0
add esp, 0xc
test eax, eax
jne 0x5c695c
cmp dword [esp + 0x1b4], ebx
jne 0x5c6904
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x44]
push ecx
push ebx
push ebx
push str.CREATE_TABLE_IF_NOT_EXISTS_Lft__DulfDM_TEXT_
push edx
jmp 0x5c6915
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x44]
push eax
push ebx
push ebx
push str.CREATE_TABLE_IF_NOT_EXISTS_Lft__DulfDM_TEXT__Nfx_TEXT_
push ecx
call fcn.005af760
add esp, 0x14
cmp eax, ebx
je 0x5c695c
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x5c6952
push eax
lea edx, [esp + 0x2e0]
push str.SQExecCT_Failed__Reason:__s
push edx
call fcn.005dfb23
lea eax, [esp + 0x2e8]
push eax
push str._SQT___s
push ebx
call fcn.004f0f30
add esp, 0x18
mov ecx, dword [esp + 0x3c]
push ecx
jmp 0x5c6d45
cmp dword [esp + 0x1b4], ebx
jne 0x5c6974
push str.INSERT_INTO_Lft_VALUES___DulfDM_
lea edx, [esp + 0x5f8]
push edx
jmp 0x5c6981
push str.INSERT_INTO_Lft_VALUES___DulfDM___Nfx_
lea eax, [esp + 0x5f8]
push eax
call fcn.005dfb23
mov eax, dword [esp + 0x44]
add esp, 8
push ebx
lea ecx, [esp + 0x44]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x600]
push edx
push eax
call fcn.005a8d50
add esp, 0x14
test eax, eax
jne 0x5c6cf8
cmp dword [esp + 0x40], ebx
je 0x5c6cf8
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x2dc]
push ecx
push edx
call fcn.005c4fd0
add esp, 8
test eax, eax
jne 0x5c69f1
lea eax, [esp + 0x40]
push eax
call fcn.005c5190
mov ecx, dword [esp + 0x40]
push ecx
mov dword [esp + 0x48], ebx
call fcn.005c51b0
add esp, 8
jmp 0x5c6d4d
lea ecx, [esp + 0x5c]
mov dword [esp + 0x48], ebx
call fcn.004f29c0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x740], ebx
mov dword [esp + 0x54], ebx
call esi
push 0x114
lea edx, [esp + 0x1cc]
push ebx
push edx
mov dword [esp + 0x1d0], ebx
call fcn.005dfd60
lea eax, [esp + 0x1c4]
push eax
push ebx
push 1
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x150]
push edx
lea eax, [esp + 0x7c]
push 0x761560
push eax
call fcn.005c5f20
mov ecx, dword [esp + 0x1e0]
add esp, 0x28
cmp dword [esp + 0x4c], ebx
jne 0x5c6a6c
mov edx, dword [esp + 0x58]
mov dword [edx + 0xc4], ecx
cmp eax, ebx
jne 0x5c6ad5
lea eax, [esp + 0x4ec]
push eax
lea ecx, [esp + 0x2e0]
push str.Error_reading__s_
push ecx
call fcn.005dfb23
lea edx, [esp + 0x2e8]
push edx
push str._SQT___s
push ebx
call fcn.004f0f30
lea eax, [esp + 0x58]
push eax
call fcn.005c5190
mov ecx, dword [esp + 0x58]
push ecx
mov dword [esp + 0x60], ebx
call fcn.005c51b0
add esp, 0x20
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x740], 0xffffffff
call fcn.00503fb0
jmp 0x5c6d4d
cmp dword [0x76155c], ebx
je 0x5c6b11
mov eax, dword [esp + 0x48]
fild dword [esp + 0x48]
push ecx
lea edx, [esp + 0x138]
push edx
test eax, eax
jge 0x5c6af8
fadd qword [0x60ecc0]
fdiv qword [0x60ecb8]
sub esp, 8
fstp qword [esp]
push str.It_took__.2f_Secs_to_complete_FillAVSFileList__s____u_files__n
call fcn.005e0e7f
add esp, 0x14
call esi
lea ecx, [esp + 0x5c]
mov edx, 1
mov edi, eax
mov dword [esp + 0x1c4], ecx
mov dword [esp + 0x2d8], edx
mov dword [esp + 0x2d4], ebx
xor eax, eax
jmp 0x5c6b40
mov cl, byte [esp + eax + 0x3e4]
mov byte [esp + eax + 0x1c8], cl
add eax, edx
cmp cl, bl
jne 0x5c6b40
cmp dword [esp + 0x1b4], ebx
jne 0x5c6b6d
mov dword [esp + 0x2d0], ebx
mov dword [esp + 0x2cc], ebx
jmp 0x5c6b9f
mov dword [esp + 0x2d0], edx
mov dword [esp + 0x2cc], edx
lea edx, [esp + 0x134]
push str.clnsign
push edx
call fcn.004dd6e0
add esp, 8
test eax, eax
jne 0x5c6b9f
mov dword [esp + 0x2d4], 1
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x54]
push eax
push ebx
push ebx
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x1d8]
push eax
call fcn.005c5dc0
lea ecx, [esp + 0x74]
push ecx
call fcn.005010c0
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x2f8]
push edx
push eax
call fcn.005c50b0
add esp, 0x24
cmp dword [0x76155c], ebx
je 0x5c6c18
mov ecx, dword [esp + 0x54]
push ecx
call esi
sub eax, edi
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
test eax, eax
jge 0x5c6bff
fadd qword [0x60ecc0]
fdiv qword [0x60ecb8]
sub esp, 8
fstp qword [esp]
push str.It_took__.2f_Secs_to_insert__u_records._n
call fcn.005e0e7f
add esp, 0x10
lea edx, [esp + 0x40]
push edx
call fcn.005c5190
add esp, 4
mov dword [esp + 0x40], ebx
call esi
mov edi, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x5c6c91
lea ecx, [esp + 0x44]
push ecx
push ebx
push ebx
push str.CREATE_INDEX_Lft_idx_ON_Lft__DulfDM_
push eax
call fcn.005af760
add esp, 0x14
test eax, eax
je 0x5c6c91
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x5c6c7f
push eax
lea edx, [esp + 0x2e0]
push str.SQExecCI_Failed__Reason:__s
push edx
call fcn.005dfb23
lea eax, [esp + 0x2e8]
push eax
push str._SQT___s
push ebx
call fcn.004f0f30
add esp, 0x18
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.005c51b0
add esp, 4
jmp 0x5c6ab8
cmp dword [0x76155c], ebx
je 0x5c6cc8
call esi
sub eax, edi
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
test eax, eax
jge 0x5c6caf
fadd qword [0x60ecc0]
fdiv qword [0x60ecb8]
sub esp, 8
fstp qword [esp]
push str.It_took__.2f_Secs_to_Create_Index._n
call fcn.005e0e7f
add esp, 0xc
mov edx, dword [esp + 0x3c]
push edx
call fcn.005c51b0
add esp, 4
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x40], ebx
call fcn.004dca10
push ebx
push 1
lea ecx, [esp + 0x3ec]
push ecx
call fcn.004f6110
jmp 0x5c6abc
mov edx, dword [esp + 0x3c]
push edx
call fcn.00584f10
push eax
lea eax, [esp + 0x2e4]
push str.SQExecPV2_Failed:__s_n
push eax
call fcn.005dfb23
lea ecx, [esp + 0x2ec]
push ecx
push str._SQT___s
push ebx
call fcn.004f0f30
mov eax, dword [esp + 0x5c]
add esp, 0x1c
cmp eax, ebx
je 0x5c6d3c
push eax
call fcn.005a7880
add esp, 4
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x40], ebx
push edx
call fcn.005c51b0
add esp, 4
mov ecx, dword [esp + 0x738]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6f0]
xor ecx, esp
call fcn.005dfbbe
mov esp, ebp
pop ebp
ret