Function at 0x5c7470
Capabilities:
Check for time delay via gettickcount
Create thread
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x60950b
mov eax, dword fs:[0]
push eax
sub esp, 0x928
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x8f0], eax
push ebx
push esi
push edi
mov eax, dword [0x6aae14]
xor eax, esp
push eax
lea eax, [esp + 0x938]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x3d9]
push ebx
push eax
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3e0], bl
call fcn.005dfd60
push 0x103
lea ecx, [esp + 0x4ed]
push ebx
push ecx
mov byte [esp + 0x4f4], bl
call fcn.005dfd60
push 0x103
lea edx, [esp + 0x2e9]
push ebx
push edx
mov byte [esp + 0x2f0], bl
call fcn.005dfd60
push 0x3f
lea eax, [esp + 0x10d]
push ebx
push eax
mov byte [esp + 0x114], bl
call fcn.005dfd60
push 0x90
lea ecx, [esp + 0x158]
push ebx
push ecx
call fcn.005dfd60
add esp, 0x3c
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
mov ecx, 0x34
lea edi, [esp + 0xe4]
rep movsd dword es:[edi], dword [esi]
mov esi, 1
xor edx, edx
cmp dword [eax + 0xcc], esi
push ebx
push esi
setne dl
mov dword [eax + 0xcc], esi
lea eax, [esp + 0x16c]
push eax
push esi
push ebx
mov dword [esp + 0x4c], edx
call fcn.00507920
mov dword [esp + 0x30], eax
cmp eax, ebx
je 0x5c75a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x5c76a7
call fcn.004dc7a0
cmp byte [0x761560], bl
jne 0x5c75bf
push 0x761560
call fcn.00513fd0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x761560
lea edx, [esp + 0x4e0]
push edx
call esi
lea eax, [esp + 0x4dc]
push eax
call fcn.004e24e0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x4e0]
push edx
call edi
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x4ec]
push ebx
push eax
call fcn.004e8950
add esp, 0x18
test eax, eax
je 0x5c7638
lea ecx, [esp + 0x4dc]
push ecx
lea edx, [esp + 0x2d0]
push str.Missing__s_
push edx
call fcn.005dfb23
add esp, 0xc
jmp 0x5c7be0
push 0x761560
lea ecx, [esp + 0x3d8]
push ecx
call esi
lea edx, [esp + 0x3d4]
push edx
call fcn.004e24e0
add esp, 4
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x3d8]
push ecx
call edi
push 3
push 1
push 2
lea edx, [esp + 0x48]
push edx
push ebx
lea eax, [esp + 0x2e0]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x3f0]
push edx
call fcn.005c4e10
add esp, 0x20
test eax, eax
mov eax, dword [esp + 0x24]
jne 0x5c76b1
push eax
call fcn.005c51b0
add esp, 4
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x30]
push ecx
jmp 0x5c7be5
lea edx, [esp + 0x2cc]
push edx
push 0x662d60
push eax
call fcn.005c62d0
add esp, 0xc
test eax, eax
jne 0x5c7715
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005c51b0
add esp, 4
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x28], ebx
call fcn.004dca10
lea eax, [esp + 0x3d4]
push eax
call fcn.004e0670
lea ecx, [esp + 0xe8]
push ecx
push ebx
push fcn.005c6680
mov dword [esp + 0x1c0], ebx
call fcn.005e07ac
add esp, 0x10
jmp 0x5c7bea
cmp dword [esp + 0x1a4], ebx
jne 0x5c772d
push str.INSERT_INTO_Lft_VALUES___DulfDM_
lea edx, [esp + 0x5e8]
push edx
jmp 0x5c773a
push str.INSERT_INTO_Lft_VALUES___DulfDM___Nfx_
lea eax, [esp + 0x5e8]
push eax
call fcn.005dfb23
mov eax, dword [esp + 0x2c]
add esp, 8
push ebx
lea ecx, [esp + 0x2c]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x5f0]
push edx
push eax
call fcn.005a8d50
add esp, 0x14
test eax, eax
jne 0x5c7b91
cmp dword [esp + 0x28], ebx
je 0x5c7b91
lea ecx, [esp + 0x6ec]
push 0x663048
push ecx
call fcn.005dfb23
mov ecx, dword [esp + 0x2c]
push ebx
lea edx, [esp + 0x38]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x700]
push eax
push ecx
call fcn.005a8d50
add esp, 0x1c
test eax, eax
jne 0x5c7b36
cmp dword [esp + 0x2c], ebx
je 0x5c7b36
lea edx, [esp + 0x7f4]
push str.DELETE_FROM_Lft_WHERE_DulfDM___
push edx
call fcn.005dfb23
mov edx, dword [esp + 0x2c]
push ebx
lea eax, [esp + 0x40]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x808]
push ecx
push edx
call fcn.005a8d50
add esp, 0x1c
test eax, eax
jne 0x5c7ac1
cmp dword [esp + 0x34], ebx
je 0x5c7ac1
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2cc]
push eax
push ecx
call fcn.005c4fd0
add esp, 8
test eax, eax
jne 0x5c7848
lea edx, [esp + 0x28]
push edx
call fcn.005c5190
lea eax, [esp + 0x30]
push eax
call fcn.005c5190
lea ecx, [esp + 0x3c]
push ecx
call fcn.005c5190
mov edx, dword [esp + 0x30]
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
call fcn.005c51b0
add esp, 0x10
jmp 0x5c7bdc
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], ebx
call fcn.004f29c0
push 0x114
lea ecx, [esp + 0x1bc]
push ebx
push ecx
mov dword [esp + 0x94c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x1c0], ebx
call fcn.005dfd60
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
cmp dword [0x76155c], ebx
je 0x5c78c4
lea edx, [esp + 0x124]
push edx
call edi
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
test eax, eax
jge 0x5c78ab
fadd qword [0x60ecc0]
fdiv qword [0x60ecb8]
sub esp, 8
fstp qword [esp]
push str.It_took__.2f_Secs_prior_to_FillAVSFileList__s__n
call fcn.005e0e7f
add esp, 0x10
call edi
mov esi, eax
lea eax, [esp + 0x1a8]
push eax
push ebx
push ebx
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x60]
push 0x761560
push eax
call fcn.005c5f20
mov ecx, dword [esp + 0x1c4]
add esp, 0x1c
cmp dword [esp + 0x38], ebx
jne 0x5c7908
mov edx, dword [esp + 0x40]
mov dword [edx + 0xc4], ecx
cmp eax, 1
jne 0x5c7a12
cmp dword [0x76155c], ebx
je 0x5c794d
fild dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x128]
push eax
test ecx, ecx
jge 0x5c7934
fadd qword [0x60ecc0]
fdiv qword [0x60ecb8]
sub esp, 8
fstp qword [esp]
push str.It_took__.2f_Secs_to_update_FillAVSFileList__s____u_files__n
call fcn.005e0e7f
add esp, 0x14
call edi
lea edx, [esp + 0x4c]
mov dword [esp + 0x1b4], edx
mov edx, 1
mov esi, eax
mov dword [esp + 0x2c8], edx
mov dword [esp + 0x2c4], ebx
xor eax, eax
jmp 0x5c7980
mov cl, byte [esp + eax + 0x3d4]
mov byte [esp + eax + 0x1b8], cl
add eax, edx
cmp cl, bl
jne 0x5c7980
cmp dword [esp + 0x1a4], ebx
jne 0x5c79ad
mov dword [esp + 0x2c0], ebx
mov dword [esp + 0x2bc], ebx
jmp 0x5c79df
lea eax, [esp + 0x124]
push str.clnsign
push eax
mov dword [esp + 0x2c8], edx
mov dword [esp + 0x2c4], edx
call fcn.004dd6e0
add esp, 8
test eax, eax
jne 0x5c79df
mov dword [esp + 0x2c4], 1
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x1c8]
push eax
call fcn.005c5dc0
lea ecx, [esp + 0x64]
push ecx
call fcn.005010c0
add esp, 0x1c
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2cc]
push edx
push eax
call fcn.005c50b0
add esp, 8
cmp dword [0x76155c], ebx
je 0x5c7a63
mov ecx, dword [esp + 0x44]
push ecx
call edi
sub eax, esi
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
test eax, eax
jge 0x5c7a4a
fadd qword [0x60ecc0]
fdiv qword [0x60ecb8]
sub esp, 8
fstp qword [esp]
push str.It_took__.2f_Secs_to_update__u_records._n
call fcn.005e0e7f
add esp, 0x10
lea edx, [esp + 0x28]
push edx
call fcn.005c5190
lea eax, [esp + 0x30]
push eax
call fcn.005c5190
lea ecx, [esp + 0x3c]
push ecx
call fcn.005c5190
mov edx, dword [esp + 0x30]
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
call fcn.005c51b0
add esp, 0x10
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x28], ebx
call fcn.004dca10
lea ecx, [esp + 0x4c]
mov dword [esp + 0x940], 0xffffffff
call fcn.00503fb0
jmp 0x5c7bea
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00584f10
push eax
lea edx, [esp + 0x2d4]
push str.SQExecPV2_b__Failed:__s_n
push edx
call fcn.005dfb23
lea eax, [esp + 0x2dc]
push eax
push str._SQT___s
push ebx
call fcn.004f0f30
lea ecx, [esp + 0x44]
push ecx
call fcn.005c5190
lea edx, [esp + 0x4c]
push edx
call fcn.005c5190
lea eax, [esp + 0x58]
push eax
call fcn.005c5190
mov ecx, dword [esp + 0x4c]
push ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
call fcn.005c51b0
add esp, 0x2c
lea edx, [esp + 0x30]
mov dword [esp + 0x24], ebx
push edx
jmp 0x5c7be5
mov eax, dword [esp + 0x24]
push eax
call fcn.00584f10
push eax
lea ecx, [esp + 0x2d4]
push str.SQExecPV2_a__Failed:__s_n
push ecx
call fcn.005dfb23
lea edx, [esp + 0x2dc]
push edx
push str._SQT___s
push ebx
call fcn.004f0f30
lea eax, [esp + 0x44]
push eax
call fcn.005c5190
lea ecx, [esp + 0x4c]
push ecx
call fcn.005c5190
mov edx, dword [esp + 0x48]
push edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.005c51b0
add esp, 0x28
jmp 0x5c7bdc
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00584f10
push eax
lea edx, [esp + 0x2d4]
push str.SQExecPV2_Failed:__s_n
push edx
call fcn.005dfb23
lea eax, [esp + 0x2dc]
push eax
push str._SQT___s
push ebx
call fcn.004f0f30
lea ecx, [esp + 0x44]
push ecx
call fcn.005c5190
mov edx, dword [esp + 0x44]
push edx
mov dword [esp + 0x4c], ebx
call fcn.005c51b0
add esp, 0x24
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x30]
push eax
call fcn.004dca10
mov ecx, dword [esp + 0x938]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8f0]
xor ecx, esp
call fcn.005dfbbe
mov esp, ebp
pop ebp
ret