Function at 0x40cc20
Capabilities:
Reference sql statements

Disassembly:
jmp dword [sym.imp.MSVBVM60.DLL___vbaFPException]
push ebp
mov ebp, esp
sub esp, 0x14
push 0x4017a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x4012c8
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xcc], ebx
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
push 0x403fc8
call dword [sym.imp.MSVBVM60.DLL___vbaDateStr]
fcomp qword [ebp + 0x14]
fnstsw ax
test ah, 1
je 0x40cb60
cmp dword [0x415780], ebx
jne 0x40c436
push 0x415780
push 0x403914
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x415780]
mov eax, dword [esi]
lea ecx, [ebp - 0x84]
push ecx
push esi
call dword [eax + 0x14]
fnclex
cmp eax, ebx
jge 0x40c45e
push 0x14
push 0x403904
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x84]
mov esi, eax
mov edx, dword [eax]
lea ecx, [ebp - 0xc8]
push ecx
push eax
call dword [edx + pe_nt_image_headers32]
fnclex
cmp eax, ebx
jge 0x40c48e
push pe_nt_image_headers32
push 0x403db0
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
xor edx, edx
cmp word [ebp - 0xc8], 0xa
sete dl
neg edx
mov esi, edx
lea ecx, [ebp - 0x84]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
cmp si, bx
je 0x40cb60
mov dword [ebp - 0x4c], 0xffffffff
push ebx
push ebx
call dword [sym.imp.MSVBVM60.DLL___vbaDateR8]
fstp qword [ebp - 0x40]
mov eax, dword [ebp + 0xc]
cmp ax, bx
jne 0x40c4db
mov eax, 1
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
jmp 0x40c4de
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x44], eax
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
cmp ax, word [ebp - 0x54]
jg 0x40ca86
lea edx, [ebp - 0x94]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcGetPresentDate]
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0xa4]
push ecx
mov ebx, dword [sym.imp.MSVBVM60.DLL_rtcGetYear]
call ebx
lea edx, [ebp - 0xa4]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x94]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcR8ValFromBstr]
fsub qword [0x4012c0]
fnstsw ax
test al, 0xd
jne 0x40cc06
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVBVM60.DLL___vbaStrR8]
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
lea eax, [ebp + 0x14]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb4], 0x4007
lea ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0x94]
push edx
call ebx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcR8ValFromBstr]
fstp qword [ebp - 0xbc]
mov dword [ebp - 0xc4], 0x8005
lea ecx, [ebp - 0x94]
push ecx
lea edx, [ebp - 0xc4]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstEq]
mov bx, ax
lea ecx, [ebp - 0x94]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
test bx, bx
je 0x40c73d
push 2
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcRightCharBstr]
mov edx, eax
lea ecx, [ebp - 0x7c]
call esi
mov dword [ebp - 0xbc], 0x403a00
mov dword [ebp - 0xc4], 8
lea edx, [ebp - 0xc4]
lea ecx, [ebp - 0x94]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xb4], 0x4002
push 1
push 1
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcBstrFromFormatVar]
mov edx, eax
lea ecx, [ebp - 0x80]
call esi
mov ebx, dword [ebp - 0x7c]
xor eax, eax
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x50]
push edx
push 0x403fe4
call edi
mov edx, eax
lea ecx, [ebp - 0x5c]
call esi
push eax
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrI2]
mov edx, eax
lea ecx, [ebp - 0x60]
call esi
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x64]
call esi
push eax
push 0x403ff0
call edi
mov edx, eax
lea ecx, [ebp - 0x68]
call esi
push eax
mov edx, ebx
lea ecx, [ebp - 0x6c]
call esi
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x70]
call esi
push eax
mov edx, dword [ebp - 0x100]
lea ecx, [ebp - 0x74]
call esi
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x78]
call esi
push eax
push 0x403a1c
call edi
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa4], 8
push 0
lea ecx, [ebp - 0xa4]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcDir]
mov edx, eax
lea ecx, [ebp - 0x48]
call esi
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x5c]
push edx
push 0xa
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x94]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x38
jmp 0x40c859
mov dword [ebp - 0xbc], 0x403a00
mov dword [ebp - 0xc4], 8
lea edx, [ebp - 0xc4]
lea ecx, [ebp - 0x94]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea edx, [ebp - 0x44]
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xb4], 0x4002
push 1
push 1
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0xb4]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcBstrFromFormatVar]
mov edx, eax
lea ecx, [ebp - 0x74]
call esi
mov ebx, dword [ebp - 0x74]
mov dword [ebp - 0x74], 0
mov edx, dword [ebp - 0x50]
push edx
push 0x403fe4
call edi
mov edx, eax
lea ecx, [ebp - 0x5c]
call esi
push eax
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrI2]
mov edx, eax
lea ecx, [ebp - 0x60]
call esi
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x64]
call esi
push eax
push 0x403bf8
call edi
mov edx, eax
lea ecx, [ebp - 0x68]
call esi
push eax
mov edx, ebx
lea ecx, [ebp - 0x6c]
call esi
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x70]
call esi
push eax
push 0x403a1c
call edi
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa4], 8
push 0
lea ecx, [ebp - 0xa4]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcDir]
mov edx, eax
lea ecx, [ebp - 0x48]
call esi
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x5c]
push edx
push 7
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x94]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x2c
mov edx, dword [ebp - 0x48]
push edx
push 0x403528
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
call ebx
test eax, eax
je 0x40c940
mov eax, dword [ebp - 0x48]
push eax
push 0x403528
call ebx
test eax, eax
je 0x40c8ff
mov ecx, dword [ebp - 0x50]
push ecx
push 0x403fe4
call edi
mov edx, eax
lea ecx, [ebp - 0x5c]
call esi
push eax
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrI2]
mov edx, eax
lea ecx, [ebp - 0x60]
call esi
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x64]
call esi
push eax
push 0x4039ec
call edi
mov edx, eax
lea ecx, [ebp - 0x68]
call esi
push eax
mov eax, dword [ebp - 0x48]
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x6c]
call esi
push eax
call 0x40cc20
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
neg ebx
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x5c]
push edx
push 5
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x18
test bx, bx
jne 0x40c93a
mov dword [ebp - 0x8c], 0x80020004
mov dword [ebp - 0x94], 0xa
push 0
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcDir]
mov edx, eax
lea ecx, [ebp - 0x48]
call esi
lea ecx, [ebp - 0x94]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
jmp 0x40c859
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
mov ecx, dword [ebp - 0x48]
push ecx
push 0x403528
call ebx
test eax, eax
je 0x40ca6d
mov eax, 2
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa4], eax
push eax
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharBstr]
mov edx, eax
lea ecx, [ebp - 0x5c]
call esi
push eax
push 0x4038bc
call edi
mov edx, eax
lea ecx, [ebp - 0x60]
call esi
push eax
lea eax, [ebp - 0x94]
push eax
push 3
mov ecx, dword [ebp - 0x48]
push ecx
mov ebx, dword [sym.imp.MSVBVM60.DLL_rtcMidCharBstr]
call ebx
mov edx, eax
lea ecx, [ebp - 0x64]
call esi
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x68]
call esi
push eax
push 0x404000
call edi
mov edx, eax
lea ecx, [ebp - 0x6c]
call esi
push eax
lea edx, [ebp - 0xa4]
push edx
push 5
mov eax, dword [ebp - 0x48]
push eax
call ebx
mov edx, eax
lea ecx, [ebp - 0x70]
call esi
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x74]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaDateStr]
fstp qword [ebp - 0x2c]
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 7
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp - 0x94]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x2c
mov dword [ebp - 0x4c], 0
fld qword [ebp - 0x40]
fcomp qword [0x4012b8]
fnstsw ax
test ah, 0x40
je 0x40ca54
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], edx
jmp 0x40ca6d
fld qword [ebp - 0x2c]
fcomp qword [ebp - 0x40]
fnstsw ax
test ah, 1
je 0x40ca6d
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], ecx
mov eax, 1
add ax, word [ebp - 0x44]
jo 0x40cc0b
mov dword [ebp - 0x44], eax
xor ebx, ebx
jmp 0x40c4ed
cmp word [ebp - 0x4c], bx
jne 0x40caab
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x40]
mov dword [eax], edx
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 4], ecx
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
wait
push 0x40cbf3
jmp 0x40cbc7
push 0x40400c
call dword [sym.imp.MSVBVM60.DLL___vbaDateStr]
mov edx, dword [ebp + 0x1c]
fstp qword [edx]
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
wait
push 0x40cbf3
jmp 0x40cbc7
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
wait
push 0x40cbf3
jmp 0x40cbc7
lea eax, [ebp - 0x20]
push eax
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea ecx, [ebp - 0x24]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call esi
lea ecx, [ebp - 0x34]
call esi
lea ecx, [ebp - 0x38]
call esi
lea ecx, [ebp - 0x48]
call esi
lea ecx, [ebp - 0x50]
call esi
ret
jmp 0x4017ac
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 8
push 0x4017a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4012f0
mov edx, dword [ebp + 8]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
call edi
push 0x4026f0
mov dword [ebp - 0x14], 1
call dword [sym.imp.MSVBVM60.DLL___vbaNew]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
xor edx, edx
lea ecx, [ebp - 0x2c]
call edi
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
push edx
mov edx, dword [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
fnclex
jge 0x40ccbf
mov ecx, dword [ebp - 0x20]
push 0x1c
push 0x404034
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp esi, ebx
jne 0x40ce19
xor edx, edx
lea ecx, [ebp - 0x2c]
call edi
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x2c]
mov edx, dword [eax]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push 0x4044d4
push eax
call dword [edx + 0x28]
cmp eax, ebx
fnclex
jge 0x40cd10
mov edx, dword [ebp - 0x20]
push 0x28
push 0x404034
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp esi, ebx
jne 0x40cde0
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jle 0x40cde0
cmp eax, 1
jne 0x40cddd
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
je 0x40cd84
cmp word [ecx], 2
jne 0x40cd84
mov edx, dword [ecx + 0x1c]
mov esi, eax
mov eax, dword [ecx + 0x18]
sub esi, edx
cmp esi, eax
jb 0x40cd5c
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
neg edi
cmp edi, eax
jb 0x40cd71
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x18]
imul eax, edi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
add eax, esi
shl eax, 4
jmp 0x40cd8d
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0xc]
lea edx, [ebp - 0x2c]
add ecx, eax
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcTrimBstr]
mov edx, eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x403528
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
mov esi, eax
lea eax, [ebp - 0x30]
neg esi
sbb esi, esi
lea ecx, [ebp - 0x2c]
push eax
push ecx
neg esi
push 2
neg esi
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
cmp si, bx
je 0x40cde0
mov dword [ebp - 0x14], ebx
xor edx, edx
lea ecx, [ebp - 0x2c]
call edi
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x2c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x20]
cmp eax, ebx
fnclex
jge 0x40ce10
mov edx, dword [ebp - 0x20]
push 0x20
push 0x404034
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
push 0x404034
push ebx
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push 0x40ce6a
jmp 0x40ce4b
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea eax, [ebp - 0x24]
push eax
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
ret