Function at 0x40f7a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401806
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4017d8
xor esi, esi
mov edx, 0x403768
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xa4], esi
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov eax, dword [ebp + 8]
push 0x403774
mov cx, word [eax]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrI2]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call edi
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push eax
call ebx
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
push eax
push 0x402850
call ebx
mov edx, eax
mov ecx, 0x41102c
call edi
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x20]
push edx
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea ebx, [ebp - 0x28]
mov ecx, 0xa
mov eax, 0x80020004
push ebx
mov dword [ebp - 0x8c], ecx
sub esp, 0x10
mov dword [ebp - 0x84], eax
mov ebx, esp
sub esp, 0x10
mov edx, dword [0x411010]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x98]
mov edx, dword [edx]
mov dword [ebx + 4], ecx
mov ecx, esp
sub esp, 0x10
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x90]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x8c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x88]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x84]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x80]
mov dword [ecx + 0xc], eax
mov ecx, esp
mov eax, 3
mov dword [ecx], eax
mov eax, dword [ebp - 0x78]
mov dword [ecx + 4], eax
mov eax, 4
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x70]
mov dword [ecx + 0xc], eax
mov ecx, dword [0x41102c]
mov eax, dword [0x411010]
push ecx
push eax
call dword [edx + 0xbc]
cmp eax, esi
fnclex
jge 0x40f911
mov ecx, dword [0x411010]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0xbc
push 0x402854
push ecx
push eax
call ebx
jmp 0x40f917
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x18]
push eax
push edx
mov dword [ebp - 0x28], esi
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xa0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
cmp eax, esi
fnclex
jge 0x40f94c
mov ecx, dword [ebp - 0x18]
push 0x20
push 0x402864
push ecx
push eax
call ebx
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xa4]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x34]
cmp eax, esi
fnclex
jge 0x40f970
mov edx, dword [ebp - 0x18]
push 0x34
push 0x402864
push edx
push eax
call ebx
xor eax, eax
cmp word [ebp - 0xa4], si
sete al
xor ecx, ecx
cmp word [ebp - 0xa0], si
sete cl
or eax, ecx
je 0x40fa84
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0xb4]
cmp eax, esi
fnclex
jge 0x40f9b7
mov edx, dword [ebp - 0x18]
push 0xb4
push 0x402864
push edx
push eax
call ebx
lea ebx, [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
push ebx
mov ecx, 8
sub esp, 0x10
mov edx, dword [eax]
mov ebx, esp
mov dword [ebp - 0xac], eax
push eax
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x78]
mov dword [ebx + 4], ecx
mov ecx, 0x4037e8
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x70]
mov dword [ebx + 0xc], ecx
call dword [edx + 0x30]
cmp eax, esi
fnclex
jge 0x40fa09
mov edx, dword [ebp - 0xac]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0x30
push 0x402888
push edx
push eax
call ebx
jmp 0x40fa0f
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x4c]
push eax
push 0x20
lea edx, [ebp - 0x5c]
push ecx
push edx
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x3c], 9
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharVar]
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x6c]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcTrimVar]
lea edx, [ebp - 0x6c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x1c]
call edi
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x5c]
push eax
lea edx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x3c]
push edx
push eax
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x14
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
cmp eax, esi
fnclex
jge 0x40faa7
mov edx, dword [ebp - 0x18]
push 0xc4
push 0x402864
push edx
push eax
call ebx
push 0x402864
push esi
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push 0x40fb1a
jmp 0x40fb10
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
ret