Function at 0x4223b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3a3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov ax, word [ebx]
mov dword [ebp - 4], 0
push eax
call fcn.004240a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x42242d
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422418
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
lea ecx, [ebp + 8]
call fcn.00402f50
lea eax, [edi + 0x120]
push eax
lea ecx, [ebp - 0x104]
call fcn.0045e9e7
mov byte [ebp - 4], 2
call fcn.0047ef80
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push str.SELECT__FROM_lf_WHERE_v___s
push ecx
mov byte [ebp - 4], 3
call fcn.00403140
mov edx, dword [ebp - 0x14]
add esp, 0xc
push 0
push edx
push 0xffffffffffffffff
lea ecx, [ebp - 0x104]
call fcn.00460384
push 0x4ab550
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x104]
call fcn.0045e49c
mov ebx, dword [eax + 8]
lea ecx, [ebp - 0x58]
cmp esi, ebx
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ecx
sete bl
call esi
test bl, bl
je 0x4225ac
push 0x4ab4fc
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x104]
call fcn.0045e49c
mov ebx, dword [eax + 8]
lea eax, [ebp - 0x30]
push eax
call esi
push 0x4ab548
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x104]
call fcn.0045e49c
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
call esi
push 0x4ab540
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x104]
call fcn.0045e49c
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
call esi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x50]
push ecx
push 0
lea edx, [ebp - 0x48]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
test eax, eax
je 0x4225ac
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.DLL_CompareFileTime]
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x3c], ecx
call esi
test eax, eax
jne 0x4225a5
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x50]
push edx
call esi
cmp eax, 0xffffffff
je 0x4225a5
test eax, eax
je 0x4225a0
cmp eax, 1
jne 0x4225ac
mov eax, dword [edi + 0x64]
add ebx, 5
cmp eax, ebx
jbe 0x4225ac
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], ecx
inc dword [0x4d0968]
jmp 0x4225ac
inc dword [edi + 0x64]
jmp 0x4225ac
mov dword [edi + 0x64], 0
lea ecx, [ebp - 0x104]
call fcn.0045e2da
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4225d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x104]
mov dword [ebp - 4], 0
call fcn.0045ea79
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42260e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8