Function at 0x481240
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4023d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4014e0
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
xor eax, eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x1a0], eax
call esi
lea ecx, [ebp - 0x140]
lea eax, [ebp - 0x9c]
push ecx
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x140], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcIsDate]
mov edx, dword [ebp - 0x9c]
test ax, ax
jne 0x48133c
mov edx, 0x40d318
lea ecx, [ebp - 0x9c]
call esi
mov edx, dword [ebp - 0x9c]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edi, 8
push 0x412bf0
push edx
mov dword [ebp - 0x158], 0x412bd4
mov dword [ebp - 0x160], edi
call esi
mov edx, eax
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x412c58
call esi
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0x148], 0x40d318
mov dword [ebp - 0x150], edi
call esi
mov eax, dword [ebp - 0x9c]
push eax
push 0x40d318
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
neg eax
sbb eax, eax
mov ebx, dword [sym.imp.MSVBVM60.DLL_rtcImmediateIf]
inc eax
lea ecx, [ebp - 0xc0]
neg eax
mov word [ebp - 0x138], ax
lea edx, [ebp - 0xb0]
push ecx
lea eax, [ebp - 0x140]
push edx
lea ecx, [ebp - 0xd0]
push eax
push ecx
mov dword [ebp - 0x140], 0xb
call ebx
lea edx, [ebp - 0x190]
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x188], 0x412c8c
mov dword [ebp - 0x190], edi
call esi
lea edx, [ebp - 0x180]
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x178], 0x40d318
mov dword [ebp - 0x180], edi
call esi
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x100]
mov dword [ebp - 0x168], edx
lea ecx, [ebp - 0xf0]
push eax
lea edx, [ebp - 0x170]
push ecx
lea eax, [ebp - 0x110]
push edx
push eax
mov dword [ebp - 0x170], 0x400b
call ebx
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
lea ecx, [ebp - 0x160]
lea edx, [ebp - 0xd0]
push ecx
lea eax, [ebp - 0xe0]
push edx
push eax
call esi
lea ecx, [ebp - 0x110]
push eax
lea edx, [ebp - 0x120]
push ecx
push edx
call esi
mov edx, eax
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
lea ecx, [ebp - 0x68]
call ebx
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0xe0]
push eax
lea edx, [ebp - 0x100]
push ecx
lea eax, [ebp - 0xf0]
push edx
lea ecx, [ebp - 0xd0]
push eax
lea edx, [ebp - 0xc0]
push ecx
lea eax, [ebp - 0xb0]
push edx
lea ecx, [ebp - 0x140]
push eax
push ecx
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov edx, dword [ebp - 0x9c]
add esp, 0x24
mov dword [ebp - 0x158], 0x412cc4
mov dword [ebp - 0x160], edi
push 0x412bf0
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x412c58
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0x148], 0x40d318
mov dword [ebp - 0x150], edi
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
mov eax, dword [ebp - 0x9c]
push eax
push 0x40d318
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
neg eax
sbb eax, eax
lea ecx, [ebp - 0xc0]
inc eax
lea edx, [ebp - 0xb0]
neg eax
mov word [ebp - 0x138], ax
push ecx
lea eax, [ebp - 0x140]
push edx
lea ecx, [ebp - 0xd0]
push eax
push ecx
mov dword [ebp - 0x140], 0xb
call dword [sym.imp.MSVBVM60.DLL_rtcImmediateIf]
lea edx, [ebp - 0x190]
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x188], 0x412c8c
mov dword [ebp - 0x190], edi
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea edx, [ebp - 0x180]
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x178], 0x40d318
mov dword [ebp - 0x180], edi
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x100]
mov dword [ebp - 0x168], edx
lea ecx, [ebp - 0xf0]
push eax
lea edx, [ebp - 0x170]
push ecx
mov dword [ebp - 0x170], 0x400b
push edx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcImmediateIf]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x160]
push eax
mov dword [ebp - 0x1a0], edi
mov edx, dword [ecx]
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x198], edx
lea edx, [ebp - 0xe0]
push ecx
push edx
call esi
push eax
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0x120]
push eax
push ecx
call esi
push eax
lea edx, [ebp - 0x1a0]
lea eax, [ebp - 0x130]
push edx
push eax
call esi
mov edx, eax
lea ecx, [ebp - 0x58]
call ebx
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x120]
lea edx, [ebp - 0x110]
push ecx
lea eax, [ebp - 0xe0]
push edx
lea ecx, [ebp - 0x100]
push eax
lea edx, [ebp - 0xf0]
push ecx
lea eax, [ebp - 0xd0]
push edx
lea ecx, [ebp - 0xc0]
push eax
lea edx, [ebp - 0xb0]
push ecx
lea eax, [ebp - 0x140]
push edx
push eax
push 9
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x28
lea ecx, [ebp - 0x140]
lea edx, [ebp - 0x58]
lea eax, [ebp - 0xb0]
push ecx
push edx
push eax
mov dword [ebp - 0x138], 0x412e70
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x148], 0x412cf0
mov dword [ebp - 0x150], edi
call esi
lea ecx, [ebp - 0x150]
push eax
lea edx, [ebp - 0xc0]
push ecx
push edx
call esi
mov edx, eax
lea ecx, [ebp - 0x98]
call ebx
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x68]
push eax
mov dword [ebp - 0x138], 0x4131c8
mov dword [ebp - 0x140], edi
push ecx
lea edx, [ebp - 0xb0]
push edx
call esi
mov edx, eax
lea ecx, [ebp - 0x78]
call ebx
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x68]
push eax
lea edx, [ebp - 0xb0]
push ecx
push edx
mov dword [ebp - 0x138], 0x4133f8
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x148], 0x412d40
mov dword [ebp - 0x150], edi
call esi
push eax
lea eax, [ebp - 0x150]
lea ecx, [ebp - 0xc0]
push eax
push ecx
call esi
mov edx, eax
lea ecx, [ebp - 0x88]
call ebx
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea edx, [ebp - 0x140]
lea eax, [ebp - 0x88]
push edx
lea ecx, [ebp - 0xb0]
push eax
push ecx
mov dword [ebp - 0x138], 0x412da0
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x148], 0x412e38
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x158], 0x4135e8
mov dword [ebp - 0x160], edi
call esi
push eax
lea edx, [ebp - 0x150]
lea eax, [ebp - 0xc0]
push edx
push eax
call esi
lea ecx, [ebp - 0x78]
push eax
lea edx, [ebp - 0xd0]
push ecx
push edx
call esi
push eax
lea eax, [ebp - 0x160]
lea ecx, [ebp - 0xe0]
push eax
push ecx
call esi
mov edx, eax
lea ecx, [ebp - 0x20]
call ebx
lea edx, [ebp - 0xd0]
lea eax, [ebp - 0xc0]
push edx
lea ecx, [ebp - 0xb0]
push eax
push ecx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x10
lea edx, [ebp - 0x140]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x138], 0x413718
push edx
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x148], 0x413788
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x158], 0x4137cc
mov dword [ebp - 0x160], edi
push eax
lea ecx, [ebp - 0xb0]
push ecx
call esi
push eax
lea edx, [ebp - 0x150]
lea eax, [ebp - 0xc0]
push edx
push eax
call esi
lea ecx, [ebp - 0x78]
push eax
lea edx, [ebp - 0xd0]
push ecx
push edx
call esi
push eax
lea eax, [ebp - 0x160]
lea ecx, [ebp - 0xe0]
push eax
push ecx
call esi
mov edx, eax
lea ecx, [ebp - 0x48]
call ebx
lea edx, [ebp - 0xd0]
lea eax, [ebp - 0xc0]
push edx
lea ecx, [ebp - 0xb0]
push eax
push ecx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x10
lea edx, [ebp - 0x140]
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0xb0]
push edx
push eax
push ecx
mov dword [ebp - 0x138], 0x4138c8
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x148], 0x413930
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x158], 0x4139b4
mov dword [ebp - 0x160], edi
call esi
push eax
lea edx, [ebp - 0x150]
lea eax, [ebp - 0xc0]
push edx
push eax
call esi
lea ecx, [ebp - 0x48]
push eax
lea edx, [ebp - 0xd0]
push ecx
push edx
call esi
push eax
lea eax, [ebp - 0x160]
lea ecx, [ebp - 0xe0]
push eax
push ecx
call esi
mov edx, eax
lea ecx, [ebp - 0x30]
call ebx
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
lea edx, [ebp - 0xd0]
lea eax, [ebp - 0xc0]
push edx
lea ecx, [ebp - 0xb0]
push eax
push ecx
push 3
call esi
add esp, 0x10
mov dword [ebp - 0xb8], 0x80020004
mov dword [ebp - 0xc0], 0xa
mov dword [ebp - 0x138], 0x40d318
mov dword [ebp - 0x140], edi
lea edx, [ebp - 0x140]
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea edx, [ebp - 0xc0]
lea eax, [ebp - 0xb0]
push edx
lea ecx, [ebp - 0x30]
push eax
lea edx, [ebp - 0xd0]
push ecx
push edx
call fcn.0047c740
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ebp - 0xcc]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc8]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [ebp - 0xe0]
push eax
call fcn.0047dad0
lea ecx, [ebp - 0xe0]
push 2
lea edx, [ebp - 0xf0]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcRound]
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaR8Var]
fstp qword [ebp - 0x38]
lea ecx, [ebp - 0xf0]
lea edx, [ebp - 0xe0]
push ecx
lea eax, [ebp - 0xd0]
push edx
lea ecx, [ebp - 0xc0]
push eax
lea edx, [ebp - 0xb0]
push ecx
push edx
push 5
call esi
add esp, 0x18
wait
push 0x481aff
jmp 0x481abe
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x30]
call esi
lea ecx, [ebp - 0x48]
call esi
lea ecx, [ebp - 0x58]
call esi
lea ecx, [ebp - 0x68]
call esi
lea ecx, [ebp - 0x78]
call esi
lea ecx, [ebp - 0x88]
call esi
lea ecx, [ebp - 0x98]
call esi
lea ecx, [ebp - 0x9c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret