Function at 0x508ec0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x404936
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x404140
xor esi, esi
push 0x42cd28
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x98], esi
call dword [sym.imp.MSVBVM60.DLL___vbaNew]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea ecx, [ebp - 0x40]
push ecx
call fcn.004e9bc0
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x40]
mov edi, 8
push eax
push ecx
mov dword [ebp - 0x78], 0x42ede8
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x70], 0x4003
call dword [sym.imp.MSVBVM60.DLL_rtcVarStrFromVar]
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x50]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcTrimVar]
lea ecx, [ebp - 0x80]
lea edx, [ebp - 0x50]
push ecx
lea eax, [ebp - 0x60]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x60]
lea edx, [ebp - 0x50]
push ecx
lea eax, [ebp - 0x40]
push edx
push eax
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov ecx, dword [ebp - 0x18]
add esp, 0x10
lea edx, [ebp - 0x98]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
mov eax, dword [0x51e0fc]
mov edx, dword [ebp - 0x1c]
mov ecx, 9
mov dword [ebp - 0x70], edi
mov edi, dword [ebp - 0x98]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x68], edx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edi, dword [edi]
sub esp, 0x10
mov ebx, esp
sub esp, 0x10
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [ebx + 4], ecx
mov ecx, esp
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x74]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x70]
mov dword [ecx], eax
mov eax, dword [ebp - 0x6c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x98]
push eax
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x64]
mov dword [ecx + 0xc], edx
call dword [edi + 0xa0]
cmp eax, esi
fnclex
jge 0x509052
mov ecx, dword [ebp - 0x98]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0xa0
push 0x42eb0c
push ecx
push eax
call edi
jmp 0x509058
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x84]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x34]
cmp eax, esi
fnclex
jge 0x509082
mov edx, dword [ebp - 0x98]
push 0x34
push 0x42eb0c
push edx
push eax
call edi
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x88]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp eax, esi
fnclex
jge 0x5090ac
mov ecx, dword [ebp - 0x98]
push 0x50
push 0x42eb0c
push ecx
push eax
call edi
xor edx, edx
cmp word [ebp - 0x88], si
sete dl
xor eax, eax
cmp word [ebp - 0x84], si
sete al
or edx, eax
je 0x5091a0
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x54]
cmp eax, esi
fnclex
jge 0x5090f3
mov ecx, dword [ebp - 0x98]
push 0x54
push 0x42eb0c
push ecx
push eax
call edi
lea ebx, [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
push ebx
mov edx, 8
sub esp, 0x10
mov dword [ebp - 0x70], edx
mov ebx, esp
mov ecx, 0x42eeb8
mov dword [ebp - 0x68], ecx
mov edi, dword [eax]
mov dword [ebx], edx
mov edx, dword [ebp - 0x6c]
push eax
mov dword [ebp - 0x90], eax
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x64]
mov dword [ebx + 0xc], ecx
call dword [edi + 0x28]
cmp eax, esi
fnclex
jge 0x50914b
mov edx, dword [ebp - 0x90]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0x28
push 0x42eb30
push edx
push eax
call edi
jmp 0x509151
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
push ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x40], 9
call dword [sym.imp.MSVBVM60.DLL_rtcTrimVar]
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x40]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov eax, dword [ebp - 0x98]
push eax
mov edx, dword [eax]
call dword [edx + 0x80]
cmp eax, esi
fnclex
jge 0x5091c9
mov ecx, dword [ebp - 0x98]
push 0x80
push 0x42eb0c
push ecx
push eax
call edi
lea edx, [ebp - 0x98]
push esi
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
push 0x42cd18
push esi
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x40]
push ecx
push edx
call fcn.00509270
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
push 0x50925c
jmp 0x509233
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x98]
call edi
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x14]
call esi
lea ecx, [ebp - 0x18]
call edi
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x28]
call esi
ret