Function at 0x548ce0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x402556
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x4019e8
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xc4], eax
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov ecx, 1
mov dword [ebp - 0x2c], ecx
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov eax, 0x1f
cmp cx, ax
jg 0x54941f
mov dword [ebp - 0xa4], 0x41020c
mov dword [ebp - 0xac], 8
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x9c], 0x4002
push 1
push 1
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcVarFromFormatVar]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVBVM60.DLL___vbaVarVargNofree]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x6c]
push edx
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x4c]
push edx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x10
mov dword [ebp - 0xa4], 0x412858
mov dword [ebp - 0xac], 8
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x9c], 0x4008
push 1
push 1
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcVarFromFormatVar]
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcIsDate]
xor edx, edx
cmp ax, 0xffff
sete dl
neg edx
mov word [ebp - 0xc8], dx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
cmp word [ebp - 0xc8], 0
je 0x549397
mov edx, 0x41a008
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, dword [ebp - 0x28]
push edx
push 0x41a044
call ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], 8
push 6
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharVar]
mov dword [ebp - 0x94], 0x41a11c
mov dword [ebp - 0x9c], 8
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call edi
push eax
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x7c]
push eax
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x14
mov eax, dword [0x587108]
mov edx, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [edx + 0x34]
fnclex
test eax, eax
jge 0x548f5c
push 0x34
push 0x419be0
mov edx, dword [0x587108]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x28]
push eax
push 0x41a1f0
call ebx
mov edx, eax
lea ecx, [ebp - 0x34]
call esi
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call ebx
mov edx, eax
lea ecx, [ebp - 0x38]
call esi
push eax
push 0x41a24c
call ebx
mov dword [ebp - 0x64], eax
mov eax, 8
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x94], 0x419c30
mov dword [ebp - 0x9c], eax
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcEnvironVar]
mov dword [ebp - 0xa4], 0x41a264
mov dword [ebp - 0xac], 8
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x7c]
push eax
call edi
push eax
lea ecx, [ebp - 0xac]
push ecx
lea edx, [ebp - 0x8c]
push edx
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x34]
push edx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
push 5
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x28
mov edx, dword [ebp - 0x28]
push edx
push 0x41a278
call ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], 8
push 6
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharVar]
mov dword [ebp - 0x94], 0x41a2a0
mov dword [ebp - 0x9c], 8
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call edi
push eax
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x7c]
push eax
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x14
mov edx, dword [ebp - 0x28]
push edx
push 0x41a08c
call ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], 8
push 6
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharVar]
mov dword [ebp - 0x94], 0x41a2b0
mov dword [ebp - 0x9c], 8
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call edi
push eax
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x7c]
push eax
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x14
cmp word [0x587068], 0
jl 0x549190
mov edx, dword [ebp - 0x28]
push edx
push 0x414e4c
call ebx
mov edx, eax
lea ecx, [ebp - 0x30]
call esi
push eax
mov ax, word [0x587068]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrI2]
mov edx, eax
lea ecx, [ebp - 0x34]
call esi
push eax
call ebx
mov edx, eax
lea ecx, [ebp - 0x38]
call esi
push eax
push 0x4101a4
call ebx
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
mov ecx, dword [ebp - 0x28]
push ecx
push 0x419f08
call ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], 8
lea edx, [ebp - 0x20]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x9c], 0x4008
push 2
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcRightCharVar]
mov dword [ebp - 0xa4], 0x41a2fc
mov dword [ebp - 0xac], 8
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call edi
push eax
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0x7c]
push eax
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x14
mov edx, dword [ebp - 0x28]
push edx
push 0x41a380
call ebx
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
mov eax, dword [ebp - 0x28]
push eax
push 0x41a3d0
call ebx
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
mov ecx, dword [ebp - 0x28]
push ecx
push 0x41a414
call ebx
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
cmp word [0x587068], 0
jl 0x5492bb
mov edx, dword [ebp - 0x28]
push edx
push 0x41a448
call ebx
mov edx, eax
lea ecx, [ebp - 0x30]
call esi
push eax
mov ax, word [0x587068]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrI2]
mov edx, eax
lea ecx, [ebp - 0x34]
call esi
push eax
call ebx
mov edx, eax
lea ecx, [ebp - 0x38]
call esi
push eax
push 0x40e784
call ebx
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
mov ecx, dword [ebp - 0x28]
push ecx
push 0x41a47c
call ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], 8
lea edx, [ebp - 0x20]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x9c], 0x4008
push 2
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcRightCharVar]
mov dword [ebp - 0xa4], 0x4101a4
mov dword [ebp - 0xac], 8
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call edi
push eax
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0x7c]
push eax
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x14
mov dword [ebp - 0xc0], 0xffffffff
mov eax, dword [0x5870fc]
mov edx, dword [eax]
lea ecx, [ebp - 0xc4]
push ecx
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [edx + 0xd8]
fnclex
test eax, eax
jge 0x549397
push 0xd8
push 0x40c4f0
mov edx, dword [0x5870fc]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, 1
mov cx, ax
add cx, word [ebp - 0x2c]
jo 0x549496
mov dword [ebp - 0x2c], ecx
jmp 0x548d7e
call dword [fcn.004010b4]
push 0x549480
jmp 0x54946f
lea ecx, [ebp - 0x20]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call esi
lea ecx, [ebp - 0x28]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop