Function at 0x422640
Capabilities:
Reference sql statements
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3a7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], ebx
mov edi, dword [ebp + 8]
xor eax, eax
mov ax, word [edi]
mov dword [ebp - 4], 0
push eax
call fcn.004240a0
add esp, 4
test eax, eax
mov dword [ebp - 0x38], eax
jne 0x4226a1
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x422711
mov eax, dword [ebx + 0x64]
test eax, eax
jne 0x4226e5
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x422688
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
push 0
push 0
lea ecx, [ebp - 0x30]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0
push 0
push 3
push 0
push 1
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x422730
mov dword [ebp - 4], eax
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42271b
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 4
lea eax, [ebp - 0x5c]
push eax
push 0
lea ecx, [ebp - 0x30]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
push 0
lea ecx, [ebp + 8]
call fcn.00402f50
lea esi, [ebx + 0x120]
push esi
lea ecx, [ebp - 0xf4]
call fcn.0045e9e7
push esi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.0045e24c
mov byte [ebp - 4], 3
call fcn.0047ef80
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov esi, dword [ebp + 8]
push esi
lea eax, [ebp - 0x28]
push str.SELECT__FROM_lf_WHERE_v___s
push eax
mov byte [ebp - 4], 4
call fcn.00403140
mov edi, dword [ebp - 0x28]
add esp, 0xc
push 0
push edi
push 0xffffffffffffffff
lea ecx, [ebp - 0xf4]
call fcn.00460384
lea ecx, [ebp - 0xf4]
call fcn.0045f927
lea eax, [edi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4228e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4228e8
mov eax, dword [esi - 0xc]
push eax
mov edi, 2
mov dword [ebp - 4], edi
push esi
mov byte [ebp - 4], 0xa
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x422908
call fcn.00402d90
push eax
push 0x4a867c
lea ecx, [ebp - 0xf4]
call fcn.0045e54a
lea edx, [ebp - 0x24]
push edx
call fcn.00462143
mov eax, dword [ebx + 0x64]
lea ecx, [ebp - 0x24]
push ecx
push 0x4ab4fc
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0xb
mov word [ebp - 0x24], 3
mov dword [ebp - 0x1c], eax
call fcn.0045faf7
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x24]
push eax
push 0x4ab550
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x1c], edx
call fcn.0045faf7
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x1c], ecx
push 0x4ab548
lea ecx, [ebp - 0xf4]
mov word [ebp - 0x24], 5
mov dword [ebp - 0x18], edx
call fcn.0045faf7
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x1c], ecx
push 0x4ab540
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x18], edx
call fcn.0045faf7
lea ecx, [ebp - 0xf4]
call fcn.0045f97f
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0xf4]
mov dword [ebp - 4], edi
call fcn.0045e2da
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4229d8
lea ecx, [ebp - 0x54]
call fcn.0045dc18
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.0045e26f
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0
call fcn.0045ea79
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422a14
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 4