Function at 0x40d910
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x4017c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4017b0
xor esi, esi
mov edx, 0x402344
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 - 0x38], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa0], esi
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push 0x403740
mov ecx, dword [eax]
push ecx
call edi
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call ebx
push eax
push 0x402808
call edi
mov edx, eax
mov ecx, 0x40f02c
call ebx
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ebx, [ebp - 0x24]
mov ecx, 0xa
push ebx
mov dword [ebp - 0x88], ecx
sub esp, 0x10
mov eax, 0x80020004
mov ebx, esp
mov edx, eax
sub esp, 0x10
mov edi, dword [0x40f010]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x94]
mov edi, dword [edi]
mov dword [ebx + 4], ecx
mov ecx, esp
sub esp, 0x10
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x88]
mov dword [ecx], eax
mov eax, dword [ebp - 0x84]
mov dword [ecx + 4], eax
mov eax, 3
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x7c]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x74]
mov ecx, esp
mov dword [ecx], eax
mov eax, 4
mov dword [ecx + 4], edx
mov edx, dword [0x40f010]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [ecx + 0xc], eax
mov ecx, dword [0x40f02c]
push ecx
push edx
call dword [edi + 0xbc]
cmp eax, esi
fnclex
jge 0x40da5c
mov ecx, dword [0x40f010]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0xbc
push 0x40280c
push ecx
push eax
call edi
jmp 0x40da62
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
push eax
push edx
mov dword [ebp - 0x24], esi
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x9c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
cmp eax, esi
fnclex
jge 0x40da97
mov ecx, dword [ebp - 0x18]
push 0x20
push 0x40281c
push ecx
push eax
call edi
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xa0]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x34]
cmp eax, esi
fnclex
jge 0x40dabb
mov edx, dword [ebp - 0x18]
push 0x34
push 0x40281c
push edx
push eax
call edi
xor eax, eax
cmp word [ebp - 0xa0], si
sete al
xor ecx, ecx
cmp word [ebp - 0x9c], si
sete cl
or eax, ecx
je 0x40dbd3
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0xb4]
cmp eax, esi
fnclex
jge 0x40db02
mov edx, dword [ebp - 0x18]
push 0xb4
push 0x40281c
push edx
push eax
call edi
lea ebx, [ebp - 0x28]
mov eax, dword [ebp - 0x24]
push ebx
mov edx, 8
sub esp, 0x10
mov edi, dword [eax]
mov ebx, esp
mov ecx, 0x403704
push eax
mov dword [ebp - 0xa8], eax
mov dword [ebx], edx
mov edx, dword [ebp - 0x74]
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x6c]
mov dword [ebx + 0xc], ecx
call dword [edi + 0x30]
cmp eax, esi
fnclex
jge 0x40db54
mov edx, dword [ebp - 0xa8]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0x30
push 0x402840
push edx
push eax
call edi
jmp 0x40db5a
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x48]
push eax
push 0x26
lea edx, [ebp - 0x58]
push ecx
push edx
mov dword [ebp - 0x40], 0xc
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x38], 9
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharVar]
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x68]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcTrimVar]
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x58]
push eax
lea edx, [ebp - 0x48]
push ecx
lea eax, [ebp - 0x38]
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 0x40dbf6
mov edx, dword [ebp - 0x18]
push 0xc4
push 0x40281c
push edx
push eax
call edi
push 0x40281c
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 0x40dc62
jmp 0x40dc58
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
ret