Function at 0x466370
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4055a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x402eb8
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc8], ebx
call fcn.00466b60
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x88], 2
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
mov ecx, dword [ebp + 0x10]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x4124f4
mov word [0x4ee7d0], bx
mov word [0x4ee7bc], bx
call edi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x48]
push eax
push ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x88], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcUpperCaseVar]
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov ecx, esi
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
call esi
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov eax, dword [ebp + 8]
push 0x4ee7c4
push eax
call fcn.00466190
mov edx, dword [0x4ee7c4]
mov ecx, 0x4ee7c0
call edi
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcRightTrimBstr]
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
push eax
push 0x4124ec
call dword [sym.imp.MSVBVM60.DLL_rtcRightTrimBstr]
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x24]
inc eax
neg eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0x28]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
cmp word [ebp - 0xcc], bx
je 0x466546
mov ecx, 0x80020004
mov eax, 0xa
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x50], ecx
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x80], 0x41b694
mov dword [ebp - 0x88], 8
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x68]
push edx
lea ecx, [ebp - 0x58]
push eax
push ecx
lea edx, [ebp - 0x48]
push 0x40
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcMsgBox]
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x68]
push eax
lea edx, [ebp - 0x58]
push ecx
lea eax, [ebp - 0x48]
push edx
push eax
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov ecx, dword [ebp + 0x10]
add esp, 0x14
mov edx, 0x4124f4
call edi
jmp 0x466a1d
push 0x4ee348
call fcn.0045e380
mov cx, word [0x4ee348]
push 0x4ee7c8
push 0x41b6d4
push ecx
call fcn.0045bbc0
test ax, ax
jne 0x4666e0
push 0x4ee7c8
push ebx
lea edx, [ebp - 0x2c]
push 0x4124ec
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
lea eax, [ebp - 0x28]
push 0x41b6d4
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
lea ecx, [ebp - 0x24]
push 0x41ba78
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
mov dx, word [0x4ee348]
push eax
push edx
call fcn.00419698
mov dword [ebp - 0xbc], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, 0x41ba78
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xc4], 3
call edi
mov edx, 0x4124ec
lea ecx, [ebp - 0x30]
call edi
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc0], eax
lea edx, [ebp - 0x34]
push ecx
lea eax, [ebp - 0x30]
push edx
push eax
lea ecx, [ebp - 0xc0]
push 0x4ee348
push ecx
call fcn.0045e0e0
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov word [0x4ee7bc], ax
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
push 5
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x18
mov edx, 0x41ba90
mov ecx, 0x4ee078
call edi
mov ecx, dword [0x4ee078]
push ecx
push 0x41bb38
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
mov ecx, 0x4ee078
call esi
mov edx, dword [0x4ee078]
lea eax, [ebp - 0x24]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
mov cx, word [0x4ee7c8]
push eax
push ecx
call fcn.00419830
mov dword [ebp - 0xbc], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x24]
push edx
push 0x4ee078
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
mov ax, word [ebp - 0xbc]
lea ecx, [ebp - 0x24]
mov word [0x4ee7bc], ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov cx, word [0x4ee7c8]
push 0x64
push ecx
call fcn.00419880
mov dword [ebp - 0xbc], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dx, word [ebp - 0xbc]
mov word [0x4ee7bc], dx
call fcn.00466dc0
call fcn.00466e30
mov eax, dword [0x4ee7c0]
push ebx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstrB]
mov ecx, dword [0x4ee7c0]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
mov ax, word [0x4ee7c8]
push 1
push eax
call fcn.0041a1ac
mov dword [ebp - 0xbc], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [ebp - 0x24]
push ecx
push 0x4ee7c0
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
mov dx, word [ebp - 0xbc]
lea ecx, [ebp - 0x24]
mov word [0x4ee7bc], dx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov ax, word [0x4ee7c8]
push eax
call fcn.0041a3b8
mov dword [ebp - 0xbc], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, 0x41ba78
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc8], 1
mov dword [ebp - 0xc4], 3
call edi
mov edx, 0x4124ec
lea ecx, [ebp - 0x24]
call edi
mov ecx, dword [ebp - 0xbc]
lea edx, [ebp - 0xc8]
mov dword [ebp - 0xc0], ecx
lea eax, [ebp - 0xc4]
push edx
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
lea eax, [ebp - 0xc0]
push 0x4ee348
push eax
call fcn.0045e160
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x24]
push ecx
push edx
push 2
mov word [0x4ee7bc], ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
cmp word [0x4ee320], bx
jne 0x466740
movsx eax, word [0x4ee7bc]
mov dword [0x4ee7cc], eax
call fcn.00466be0
cmp dword [0x4ee7cc], 0x65
je 0x4669a3
push 0x4ee82a
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaStrFixstr]
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcRightTrimBstr]
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
mov ecx, dword [ebp - 0x24]
push ecx
push 0x4ee82a
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaLsetFixstr]
mov edx, dword [ebp - 0x28]
mov ecx, 0x4ee7b0
mov dword [ebp - 0x28], ebx
call esi
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
push 0x4ee7ea
push 0x20
call dword [sym.imp.MSVBVM60.DLL___vbaStrFixstr]
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcRightTrimBstr]
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
mov edx, dword [ebp - 0x24]
push edx
push 0x4ee7ea
push 0x20
call dword [sym.imp.MSVBVM60.DLL___vbaLsetFixstr]
mov edx, dword [ebp - 0x28]
mov ecx, 0x4ee7ac
mov dword [ebp - 0x28], ebx
call esi
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
push 0x4ee7d2
push 0xc
call dword [sym.imp.MSVBVM60.DLL___vbaStrFixstr]
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcRightTrimBstr]
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
mov eax, dword [ebp - 0x24]
push eax
push 0x4ee7d2
push 0xc
call dword [sym.imp.MSVBVM60.DLL___vbaLsetFixstr]
mov edx, dword [ebp - 0x28]
mov ecx, 0x4ee7b4
mov dword [ebp - 0x28], ebx
call esi
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, dword [0x4ee7b4]
mov ecx, dword [ebp + 0xc]
call edi
mov ecx, dword [ebp + 0x10]
mov edx, 0x41b270
call edi
mov cx, word [0x4ee7c8]
push ecx
call fcn.0041a368
mov dword [ebp - 0xbc], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, 0x41ba78
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc8], 1
mov dword [ebp - 0xc4], 3
call edi
mov edx, 0x4124ec
lea ecx, [ebp - 0x24]
call edi
mov edx, dword [ebp - 0xbc]
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc0], edx
lea ecx, [ebp - 0xc4]
push eax
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
lea ecx, [ebp - 0xc0]
push 0x4ee348
push ecx
call fcn.0045e160
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov word [0x4ee7bc], ax
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
push edx
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
cmp word [0x4ee320], bx
jne 0x4668ef
movsx ecx, word [0x4ee7bc]
mov dword [0x4ee7cc], ecx
jmp 0x4667ed
mov dx, word [0x4ee7c8]
push edx
call fcn.0041a240
mov esi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, 0x41ba78
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc4], 3
call edi
mov edx, 0x4124ec
lea ecx, [ebp - 0x24]
call edi
lea eax, [ebp - 0xc4]
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
lea eax, [ebp - 0xc0]
push 0x4ee348
push eax
mov dword [ebp - 0xc0], esi
call fcn.0045e0e0
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x24]
push ecx
push edx
push 2
mov word [0x4ee7bc], ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
cmp dword [0x4f5b70], ebx
jne 0x466a35
push 0x4f5b70
push 0x417d08
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
sub esp, 0x10
mov esi, dword [0x4f5b70]
mov edi, esp
mov ecx, 3
mov dword [ebp - 0x88], ecx
mov eax, 1
mov dword [edi], ecx
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x80], eax
mov edx, dword [esi]
mov dword [edi + 4], ecx
push esi
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x7c]
mov dword [edi + 0xc], eax
call dword [edx + 0x44]
cmp eax, ebx
fnclex
jge 0x466a86
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0x44
push 0x417cf8
push esi
push eax
call edi
jmp 0x466a8c
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
cmp dword [0x4f5aac], ebx
jne 0x466aa4
push 0x4f5aac
push 0x415574
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x4f5aac]
lea edx, [ebp - 0x38]
push edx
push esi
mov ecx, dword [esi]
call dword [ecx + 0x18]
cmp eax, ebx
fnclex
jge 0x466ac5
push 0x18
push 0x415564
push esi
push eax
call edi
mov eax, dword [ebp - 0x38]
mov dx, word [0x4ee142]
push edx
push eax
mov ecx, dword [eax]
mov esi, eax
call dword [ecx + 0x7c]
cmp eax, ebx
fnclex
jge 0x466ae9
push 0x7c
push 0x415584
push esi
push eax
call edi
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
push 0x466b47
jmp 0x466b3d
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
ret