Function at 0x45bb20
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x4023a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x401300
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x17c], esi
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
push esi
push 0x41144c
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcCreateObject2]
lea ecx, [ebp - 0x78]
push ecx
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaObjVar]
call esi
push eax
lea edx, [ebp - 0x34]
push edx
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
call ebx
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov ecx, dword [edi]
lea edx, [ebp - 0x16c]
push edx
push edi
call dword [ecx + 0x50]
fnclex
test eax, eax
jge 0x45bc27
push 0x50
push 0x40df94
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
cmp word [ebp - 0x16c], 0
jne 0x45c4f9
push 0
push 0x411484
push 0
push 0x411470
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x78]
push ecx
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaLateMemCallLd]
call edi
add esp, 0x10
push eax
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarLateMemCallLd]
add esp, 0x10
push eax
call esi
push eax
lea eax, [ebp - 0x30]
push eax
call ebx
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x78]
push edx
push 2
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
call ebx
mov eax, 0x411490
mov dword [ebp - 0xb0], eax
mov ecx, 8
mov dword [ebp - 0xb8], ecx
push ecx
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [ebp - 0xb4]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0xac]
mov dword [edx + 0xc], eax
push 1
push 0x4114b8
push 0
push 0x4114a0
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x78]
push edx
call edi
add esp, 0x10
push eax
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarLateMemCallLd]
add esp, 0x20
push eax
call esi
push eax
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x78]
push eax
push 2
call ebx
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov dword [ebp - 0xb0], eax
mov ecx, 8
mov dword [ebp - 0xb8], ecx
push ecx
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [ebp - 0xb4]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0xac]
mov dword [edx + 0xc], eax
push 0x4114c4
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLateMemSt]
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
mov eax, dword [esi]
lea ecx, [ebp - 0x64]
push ecx
push esi
call dword [eax + 0x54]
fnclex
test eax, eax
jge 0x45bd62
push 0x54
push 0x40df94
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x64]
mov esi, eax
mov dword [ebp - 0x17c], esi
mov edx, dword [eax]
lea ecx, [ebp - 0x170]
push ecx
push eax
call dword [edx + 0x1c]
fnclex
test eax, eax
jge 0x45bd8f
push 0x1c
push 0x4114d0
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ecx, dword [ebp - 0x170]
sub ecx, 1
jo 0x45c73d
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov dword [ebp - 0x190], eax
xor esi, esi
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
cmp si, word [ebp - 0x190]
jg 0x45bf5b
mov edx, dword [ebp + 0xc]
mov edi, dword [edx]
mov eax, dword [edi]
lea ecx, [ebp - 0x64]
push ecx
push edi
call dword [eax + 0x54]
fnclex
test eax, eax
jge 0x45bde6
push 0x54
push 0x40df94
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x64]
mov edi, eax
mov dword [ebp - 0x17c], edi
mov word [ebp - 0xb0], si
mov ecx, 2
mov dword [ebp - 0xb8], ecx
mov edx, dword [eax]
lea ebx, [ebp - 0x68]
push ebx
sub esp, 0x10
mov ebx, esp
mov dword [ebx], ecx
mov ecx, dword [ebp - 0xb4]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0xb0]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0xac]
mov dword [ebx + 0xc], ecx
push eax
call dword [edx + 0x28]
fnclex
test eax, eax
jge 0x45be44
push 0x28
push 0x40dfac
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x68]
mov edi, eax
mov edx, dword [eax]
lea ecx, [ebp - 0x54]
push ecx
push eax
call dword [edx + 0x2c]
fnclex
test eax, eax
jge 0x45be68
push 0x2c
push 0x4112f4
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x70], eax
mov ecx, 8
mov dword [ebp - 0x78], ecx
mov edx, 1
mov dword [ebp - 0xc0], edx
mov edi, 2
mov bx, si
add bx, dx
jo 0x45c73d
mov word [ebp - 0xe0], bx
sub esp, 0x10
mov ebx, esp
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x74]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebx + 0xc], eax
push 0x4114ec
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov eax, dword [ebp - 0xc4]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0xbc]
mov dword [ecx + 0xc], edx
sub esp, 0x10
mov ecx, esp
mov eax, edi
mov dword [ecx], eax
mov edx, dword [ebp - 0xe4]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0xe0]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0xdc]
mov dword [ecx + 0xc], edx
push edi
push 0x4114e0
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x88]
push ecx
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaLateMemCallLd]
call edi
add esp, 0x30
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarLateMemSt]
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x64]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x78]
push edx
push 2
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
call ebx
add esp, 0x18
mov eax, 1
add ax, si
jo 0x45c73d
mov esi, eax
jmp 0x45bdb5
mov dword [ebp - 0xb0], 1
mov dword [ebp - 0xb8], 2
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
mov ecx, dword [esi]
lea edx, [ebp - 0x64]
push edx
push esi
call dword [ecx + 0x54]
fnclex
test eax, eax
jge 0x45bf93
push 0x54
push 0x40df94
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x64]
mov esi, eax
mov dword [ebp - 0x17c], esi
mov ecx, dword [eax]
lea edx, [ebp - 0x170]
push edx
push eax
call dword [ecx + 0x1c]
fnclex
test eax, eax
jge 0x45bfc0
push 0x1c
push 0x4114d0
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov esi, dword [ebp - 0x170]
sub esp, 0x10
mov ecx, esp
mov eax, 0xb
mov dword [ecx], eax
mov edx, dword [ebp - 0x154]
mov dword [ecx + 4], edx
or eax, 0xffffffff
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x14c]
mov dword [ecx + 0xc], eax
push 0x411320
push 0
push 0x411314
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0xb8]
mov dword [ecx], edx
mov eax, dword [ebp - 0xb4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xb0]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0xac]
mov dword [ecx + 0xc], eax
sub esp, 0x10
mov ecx, esp
mov eax, 2
mov dword [ecx], eax
mov edx, dword [ebp - 0xd4]
mov dword [ecx + 4], edx
mov eax, 1
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xcc]
mov dword [ecx + 0xc], eax
push 2
push 0x4114e0
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x78]
push edx
call edi
add esp, 0x20
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
sub esp, 0x10
mov ecx, esp
mov eax, 2
mov dword [ecx], eax
mov edx, dword [ebp - 0xf4]
mov dword [ecx + 4], edx
mov eax, 1
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xec]
mov dword [ecx + 0xc], eax
sub esp, 0x10
mov ecx, esp
mov eax, 3
mov dword [ecx], eax
mov edx, dword [ebp - 0x114]
mov dword [ecx + 4], edx
mov dword [ecx + 8], esi
mov eax, dword [ebp - 0x10c]
mov dword [ecx + 0xc], eax
push 2
push 0x4114e0
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x88]
push edx
call edi
add esp, 0x20
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
push 2
push 0x4114f8
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x98]
push edx
call edi
add esp, 0x30
push eax
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarLateMemCallLdRf]
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarLateMemSt]
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x98]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x78]
push ecx
push 4
call ebx
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx]
mov eax, dword [ebx]
lea ecx, [ebp - 0x170]
push ecx
push ebx
call dword [eax + 0x68]
fnclex
test eax, eax
jge 0x45c169
push 0x68
push 0x40df94
push ebx
push eax
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
call ebx
jmp 0x45c16f
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ecx, dword [ebp - 0x170]
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x40], 1
mov dx, word [ebp - 0x198]
cmp word [ebp - 0x40], dx
jg 0x45c3f0
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
mov ecx, dword [esi]
lea edx, [ebp - 0x64]
push edx
push esi
call dword [ecx + 0x54]
fnclex
test eax, eax
jge 0x45c1b9
push 0x54
push 0x40df94
push esi
push eax
call ebx
mov eax, dword [ebp - 0x64]
mov esi, eax
mov dword [ebp - 0x17c], esi
mov ecx, dword [eax]
lea edx, [ebp - 0x170]
push edx
push eax
call dword [ecx + 0x1c]
fnclex
test eax, eax
jge 0x45c1e2
push 0x1c
push 0x4114d0
push esi
push eax
call ebx
mov ecx, dword [ebp - 0x170]
sub ecx, 1
jo 0x45c73d
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov dword [ebp - 0x1a0], eax
xor esi, esi
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
cmp si, word [ebp - 0x1a0]
jg 0x45c3ad
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov ecx, dword [ebx]
lea edx, [ebp - 0x64]
push edx
push ebx
call dword [ecx + 0x54]
fnclex
test eax, eax
jge 0x45c239
push 0x54
push 0x40df94
push ebx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x17c], eax
mov word [ebp - 0xb0], si
mov ecx, 2
mov dword [ebp - 0xb8], ecx
mov edx, dword [eax]
lea ebx, [ebp - 0x68]
push ebx
sub esp, 0x10
mov ebx, esp
mov dword [ebx], ecx
mov ecx, dword [ebp - 0xb4]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0xb0]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0xac]
mov dword [ebx + 0xc], ecx
push eax
call dword [edx + 0x28]
fnclex
test eax, eax
jge 0x45c29b
push 0x28
push 0x40dfac
mov edx, dword [ebp - 0x17c]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x68]
mov ebx, eax
mov ecx, dword [eax]
lea edx, [ebp - 0x78]
push edx
push eax
call dword [ecx + 0x34]
fnclex
test eax, eax
jge 0x45c2bf
push 0x34
push 0x4112f4
push ebx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ax, word [ebp - 0x40]
add ax, 1
jo 0x45c73d
mov word [ebp - 0xc0], ax
mov eax, 2
mov cx, si
add cx, 1
jo 0x45c73d
mov word [ebp - 0xe0], cx
mov ecx, eax
sub esp, 0x10
mov edx, esp
mov ebx, dword [ebp - 0x78]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x74]
mov dword [edx + 4], ebx
mov ebx, dword [ebp - 0x70]
mov dword [edx + 8], ebx
mov ebx, dword [ebp - 0x6c]
mov dword [edx + 0xc], ebx
push 0x4114ec
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [ebp - 0xc4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0xc0]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0xbc]
mov dword [edx + 0xc], eax
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov eax, dword [ebp - 0xe4]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0xe0]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0xdc]
mov dword [edx + 0xc], eax
push 2
push 0x4114e0
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x88]
push edx
call edi
add esp, 0x30
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarLateMemSt]
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x64]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x78]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x18
mov eax, 1
add ax, si
jo 0x45c73d
mov esi, eax
jmp 0x45c208
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
mov edx, dword [esi]
push esi
call dword [edx + 0x90]
fnclex
test eax, eax
jge 0x45c3d3
push 0x90
push 0x40df94
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, 1
add ax, word [ebp - 0x40]
jo 0x45c73d
mov dword [ebp - 0x40], eax
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
jmp 0x45c188
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
push 0x411330
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
call esi
mov edx, eax
lea ecx, [ebp - 0x54]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
call edi
push eax
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
call esi
mov edx, eax
lea ecx, [ebp - 0x58]
call edi
push eax
push 0x411338
call esi
mov edx, eax
lea ecx, [ebp - 0x5c]
call edi
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call esi
mov edx, eax
lea ecx, [ebp - 0x60]
call edi
push eax
push 0x40f7dc
call esi
mov dword [ebp - 0x70], eax
mov ecx, 8
mov dword [ebp - 0x78], ecx
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [ebp - 0x74]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [edx + 0xc], eax
push 1
push 0x410030
mov ecx, dword [ebp - 0x30]
push ecx
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaLateMemCall]
call esi
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x54]
push edx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x30
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xb8], 0x800b
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCmpEq]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
push 1
push 0x410040
mov ecx, dword [ebp - 0x30]
push ecx
call esi
add esp, 0x1c
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
push 0
lea edx, [ebp - 0x34]
push edx
call ebx
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x45c70e
jmp 0x45c6ef
lea ecx, [ebp - 0x30]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
call esi
lea ecx, [ebp - 0x34]
call esi
lea ecx, [ebp - 0x38]
call esi
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop