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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0xa9c1db
mov eax, dword fs:[0]
push eax
sub esp, 0x928
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x8f0], eax
push ebx
push esi
push edi
mov eax, dword [0xb196ec]
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 + 0x4e1]
push ebx
push eax
mov dword [esp + 0x4c], esi
mov byte [esp + 0x4e8], bl
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x3d9]
push ebx
push ecx
mov byte [esp + 0x3e0], bl
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea edx, [esp + 0x2d1]
push ebx
push edx
mov byte [esp + 0x2d8], bl
call fcn.00a7ffb0
add esp, 0xc
push 0x3f
lea eax, [esp + 0xe9]
push ebx
push eax
mov byte [esp + 0xf0], bl
call fcn.00a7ffb0
add esp, 0xc
push 0x90
lea ecx, [esp + 0x128]
push ebx
push ecx
call fcn.00a7ffb0
add esp, 0xc
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x34
lea edi, [esp + 0xe4]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
xor edx, edx
mov esi, 1
cmp dword [eax + 0xcc], esi
push esi
setne dl
lea ecx, [esp + 0x168]
mov dword [eax + 0xcc], esi
mov dword [esp + 0x3c], edx
call fcn.00962f00
mov dword [esp + 0x28], eax
cmp eax, ebx
je 0xa528e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0xa528e2
lea eax, [esp + 0x28]
push eax
jmp 0xa52f12
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp byte [0xbde468], bl
jne 0xa52903
mov esi, 0xbde468
call fcn.009899d0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xbde468
lea ecx, [esp + 0x3d8]
push ecx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [esp + 0x3d4], bl
je 0xa52954
lea eax, [esp + 0x3d4]
mov edi, edi
inc eax
cmp byte [eax], bl
jne 0xa52930
lea edx, [esp + 0x3d4]
sub eax, edx
je 0xa52954
cmp byte [esp + eax + 0x3d3], 0x5c
je 0xa52954
push 0xaa1564
mov eax, edx
push eax
call esi
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x3d8]
push edx
call esi
push 1
push ebx
xor edx, edx
lea ecx, [esp + 0x3dc]
call fcn.0095a0f0
add esp, 8
test eax, eax
je 0xa529a5
lea eax, [esp + 0x3d4]
push eax
lea ecx, [esp + 0x2d0]
push str.Missing__s_
push ecx
call fcn.00a78f30
add esp, 0xc
lea edx, [esp + 0x28]
push edx
jmp 0xa52f12
push 0xbde468
lea eax, [esp + 0x4e0]
push eax
call edi
lea ecx, [esp + 0x4dc]
call fcn.00960910
lea ecx, [esp + 0xe4]
push ecx
lea edx, [esp + 0x4e0]
push edx
call esi
push 3
push 1
push 2
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x4ec]
push ecx
lea ecx, [esp + 0x2e0]
lea edx, [esp + 0x38]
call fcn.00a4fa40
add esp, 0x14
test eax, eax
je 0xa52e40
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x2d0]
call fcn.00a4fbe0
add esp, 4
test eax, eax
jne 0xa52a61
mov edx, dword [esp + 0x24]
push edx
call fcn.00a4ff60
add esp, 4
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x28], ebx
call fcn.00985290
lea eax, [esp + 0x4dc]
call fcn.0094dd20
lea ecx, [esp + 0xe4]
push ecx
push ebx
push fcn.00a52f40
mov dword [esp + 0x1bc], ebx
call fcn.00a791b2
add esp, 0xc
jmp 0xa52f17
cmp dword [esp + 0x1a4], ebx
jne 0xa52a79
push str.INSERT_INTO_Lft_VALUES___DulfDM_
lea edx, [esp + 0x5e8]
push edx
jmp 0xa52a86
push str.INSERT_INTO_Lft_VALUES___DulfDM___Nfx_
lea eax, [esp + 0x5e8]
push eax
call fcn.00a78f30
mov eax, dword [esp + 0x2c]
add esp, 8
push ebx
lea ecx, [esp + 0x30]
push ecx
push ebx
push 1
push 0xffffffffffffffff
lea edx, [esp + 0x5f8]
push edx
push eax
call fcn.00a31a00
mov esi, dword [esp + 0x48]
add esp, 0x1c
cmp eax, ebx
jne 0xa52eb6
cmp esi, ebx
je 0xa52eb6
lea ecx, [esp + 0x6ec]
push 0xb03198
push ecx
call fcn.00a78f30
mov ecx, dword [esp + 0x2c]
push ebx
lea edx, [esp + 0x3c]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x700]
push eax
push ecx
call fcn.00a31b90
add esp, 0x1c
test eax, eax
jne 0xa52e57
cmp dword [esp + 0x30], ebx
je 0xa52e57
lea edx, [esp + 0x7f4]
push str.DELETE_FROM_Lft_WHERE_DulfDM___
push edx
call fcn.00a78f30
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.00a31b90
add esp, 0x1c
test eax, eax
jne 0xa52dec
cmp dword [esp + 0x34], ebx
je 0xa52dec
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x2d0]
call fcn.00a4fd80
add esp, 4
test eax, eax
jne 0xa52b8e
lea esi, [esp + 0x2c]
call fcn.00a4ff40
lea esi, [esp + 0x30]
call fcn.00a4ff40
lea esi, [esp + 0x34]
call fcn.00a4ff40
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00a4ff60
add esp, 4
lea edx, [esp + 0x28]
push edx
jmp 0xa52f0e
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], ebx
call fcn.0097f770
push 0x114
lea eax, [esp + 0x1bc]
mov dword [esp + 0x944], ebx
push ebx
push eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x1c0], ebx
call fcn.00a7ffb0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
cmp dword [0xbde25c], ebx
je 0xa52c0a
lea ecx, [esp + 0x124]
push ecx
call esi
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
test eax, eax
jge 0xa52bf1
fadd qword [0xb0baa8]
fdiv qword [0xb0bad0]
sub esp, 8
fstp qword [esp]
push str.It_took__.2f_Secs_prior_to_FillAVSFileList__s__n
call fcn.00a7a8b1
add esp, 0x10
call esi
lea edx, [esp + 0x1a8]
push edx
push ebx
mov edi, eax
push ebx
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x50]
mov edx, 0xbde468
call fcn.00a51170
mov ecx, dword [esp + 0x1bc]
add esp, 0x14
cmp dword [esp + 0x38], ebx
jne 0xa52c4d
mov edx, dword [esp + 0x40]
mov dword [edx + 0xc4], ecx
cmp eax, 1
jne 0xa52d4d
cmp dword [0xbde25c], ebx
je 0xa52c92
fild dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x128]
push eax
test ecx, ecx
jge 0xa52c79
fadd qword [0xb0baa8]
fdiv qword [0xb0bad0]
sub esp, 8
fstp qword [esp]
push str.It_took__.2f_Secs_to_update_FillAVSFileList__s____u_files__n
call fcn.00a7a8b1
add esp, 0x14
call esi
lea edx, [esp + 0x4c]
mov esi, 1
mov edi, eax
mov dword [esp + 0x1b4], edx
mov dword [esp + 0x2c8], esi
mov dword [esp + 0x2c4], ebx
xor eax, eax
jmp 0xa52cc0
mov cl, byte [esp + eax + 0x4dc]
mov byte [esp + eax + 0x1b8], cl
add eax, esi
cmp cl, bl
jne 0xa52cc0
cmp dword [esp + 0x1a4], ebx
jne 0xa52ced
mov dword [esp + 0x2c0], ebx
mov dword [esp + 0x2bc], ebx
jmp 0xa52d17
mov eax, str.clnsign
lea ecx, [esp + 0x124]
mov dword [esp + 0x2c0], esi
mov dword [esp + 0x2bc], esi
call fcn.0094c3e0
test eax, eax
jne 0xa52d17
mov dword [esp + 0x2c4], esi
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x44]
push eax
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x1c0]
push eax
call fcn.00a50fa0
add esp, 0x10
lea esi, [esp + 0x4c]
call fcn.00956c50
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x2d0]
call fcn.00a4fe60
add esp, 4
cmp dword [0xbde25c], ebx
je 0xa52d9d
mov edx, dword [esp + 0x44]
push edx
call esi
sub eax, edi
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
test eax, eax
jge 0xa52d84
fadd qword [0xb0baa8]
fdiv qword [0xb0bad0]
sub esp, 8
fstp qword [esp]
push str.It_took__.2f_Secs_to_update__u_records._n
call fcn.00a7a8b1
add esp, 0x10
lea esi, [esp + 0x2c]
call fcn.00a4ff40
lea esi, [esp + 0x30]
call fcn.00a4ff40
lea esi, [esp + 0x34]
call fcn.00a4ff40
mov eax, dword [esp + 0x24]
push eax
call fcn.00a4ff60
add esp, 4
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x28], ebx
call fcn.00985290
lea ecx, [esp + 0x4c]
mov dword [esp + 0x940], 0xffffffff
call fcn.0097f840
jmp 0xa52f17
mov edx, dword [esp + 0x24]
push edx
call fcn.00a4def0
add esp, 4
push eax
lea eax, [esp + 0x2d0]
push str.SQExecPV2_b__Failed:__s_n
push eax
call fcn.00a78f30
add esp, 0xc
lea ecx, [esp + 0x2cc]
push ecx
push str._SQT___s
push ebx
call fcn.0096a780
add esp, 0xc
lea esi, [esp + 0x2c]
call fcn.00a4ff40
lea esi, [esp + 0x30]
call fcn.00a4ff40
lea esi, [esp + 0x34]
call fcn.00a4ff40
mov edx, dword [esp + 0x24]
push edx
call fcn.00a4ff60
add esp, 4
lea eax, [esp + 0x28]
push eax
jmp 0xa52f0e
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00a4def0
add esp, 4
push eax
lea edx, [esp + 0x2d0]
push str.SQExecPV2_a__Failed:__s_n
push edx
call fcn.00a78f30
add esp, 0xc
lea eax, [esp + 0x2cc]
push eax
push str._SQT___s
push ebx
call fcn.0096a780
add esp, 0xc
lea esi, [esp + 0x2c]
call fcn.00a4ff40
lea esi, [esp + 0x30]
call fcn.00a4ff40
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00a4ff60
add esp, 4
lea edx, [esp + 0x28]
push edx
jmp 0xa52f0e
mov eax, dword [esp + 0x24]
push eax
call fcn.00a4def0
add esp, 4
push eax
lea ecx, [esp + 0x2d0]
push str.SQExecPV2_Failed:__s_n
push ecx
call fcn.00a78f30
add esp, 0xc
lea edx, [esp + 0x2cc]
push edx
push str._SQT___s
push ebx
call fcn.0096a780
add esp, 0xc
cmp esi, ebx
je 0xa52efc
push esi
call fcn.00a06130
add esp, 4
mov eax, dword [esp + 0x24]
push eax
call fcn.00a4ff60
add esp, 4
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x28], ebx
call fcn.00985290
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.00a78f21
mov esp, ebp
pop ebp
ret