Function at 0x508910
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, 0xa8
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x404108
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
xor esi, esi
mov edx, 0x421548
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xb4], esi
call edi
mov edx, 0x428e54
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x98], 0xffffffff
call edi
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x98]
push eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x28]
push ecx
push edx
push eax
call fcn.00508360
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x14]
call edi
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x28]
push ecx
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
push 0x42cd28
call dword [sym.imp.MSVBVM60.DLL___vbaNew]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea ecx, [ebp - 0x44]
push ecx
call fcn.004e9bc0
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x44]
mov ebx, 8
lea edx, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x7c], 0x42ed54
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x74], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcTrimVar]
lea edx, [ebp - 0x84]
lea eax, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x94], ebx
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
mov dword [ebp - 0x8c], 0x428e54
push ecx
call ebx
push eax
lea edx, [ebp - 0x94]
lea eax, [ebp - 0x64]
push edx
push eax
call ebx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call edi
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x54]
push ecx
lea eax, [ebp - 0x44]
push edx
push eax
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
lea edx, [ebp - 0xb4]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [0x51e0fc]
sub esp, 0x10
mov ecx, 9
mov ebx, esp
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x7c], eax
sub esp, 0x10
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0xb4]
mov dword [ebx + 4], ecx
mov dword [ebp - 0x74], 8
mov ecx, esp
mov dword [ebp - 0x6c], edx
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x78]
mov edi, dword [edi]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x74]
mov dword [ecx], eax
mov eax, dword [ebp - 0x70]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0xb4]
push eax
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x68]
mov dword [ecx + 0xc], edx
call dword [edi + 0xa0]
cmp eax, esi
fnclex
jge 0x508b25
mov ecx, dword [ebp - 0xb4]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0xa0
push 0x42eb0c
push ecx
push eax
call edi
jmp 0x508b2b
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0x98]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x34]
cmp eax, esi
fnclex
jge 0x508b55
mov edx, dword [ebp - 0xb4]
push 0x34
push 0x42eb0c
push edx
push eax
call edi
mov eax, dword [ebp - 0xb4]
lea edx, [ebp - 0x9c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp eax, esi
fnclex
jge 0x508b7f
mov ecx, dword [ebp - 0xb4]
push 0x50
push 0x42eb0c
push ecx
push eax
call edi
xor edx, edx
cmp word [ebp - 0x9c], si
sete dl
xor eax, eax
cmp word [ebp - 0x98], si
sete al
or edx, eax
je 0x508c6e
mov eax, dword [ebp - 0xb4]
lea edx, [ebp - 0x30]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x54]
cmp eax, esi
fnclex
jge 0x508bc6
mov ecx, dword [ebp - 0xb4]
push 0x54
push 0x42eb0c
push ecx
push eax
call edi
lea ebx, [ebp - 0x34]
mov eax, dword [ebp - 0x30]
push ebx
mov edx, 8
sub esp, 0x10
mov dword [ebp - 0x74], edx
mov ebx, esp
mov ecx, 0x42edd0
mov dword [ebp - 0x6c], ecx
mov edi, dword [eax]
mov dword [ebx], edx
mov edx, dword [ebp - 0x70]
push eax
mov dword [ebp - 0xa4], eax
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x68]
mov dword [ebx + 0xc], ecx
call dword [edi + 0x28]
cmp eax, esi
fnclex
jge 0x508c1e
mov edx, dword [ebp - 0xa4]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0x28
push 0x42eb30
push edx
push eax
call edi
jmp 0x508c24
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x44]
push edx
push eax
mov ecx, dword [eax]
mov ebx, eax
call dword [ecx + 0x34]
cmp eax, esi
fnclex
jge 0x508c44
push 0x34
push 0x42eb40
push ebx
push eax
call edi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x30]
push ecx
push edx
push 2
mov ebx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0xc
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
jmp 0x508c71
or ebx, 0xffffffff
mov eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
cmp eax, esi
fnclex
jge 0x508c9a
mov edx, dword [ebp - 0xb4]
push 0x80
push 0x42eb0c
push edx
push eax
call edi
lea eax, [ebp - 0xb4]
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
push 0x42cd18
push esi
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
lea ecx, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 0x24], ebx
push 0x508d25
jmp 0x508d01
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0xb4]
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x14]
call edi
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x20]
call edi
ret