Function at 0x58523b
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x40a666
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x407fe0
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], esi
push 1
call sub.MSVBVM60.DLL___vbaOnError
mov edx, 0x46392c
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
cmp dword [0x60e5b8], esi
jne 0x5852a0
push 0x60e5b8
push 0x44b77c
call sub.MSVBVM60.DLL___vbaNew2
mov ebx, dword [0x60e5b8]
mov edi, 0x80020004
mov dword [ebp - 0x2c], edi
push 0xa
pop esi
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVarg
mov eax, dword [ebx]
lea ecx, [ebp - 0x24]
push ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x20]
push ebx
call dword [eax + 0x40]
fnclex
test eax, eax
jge 0x5852e3
push 0x40
push 0x44c708
push ebx
push eax
call sub.MSVBVM60.DLL___vbaHresultCheckObj
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeObj
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVar
mov edx, 0x463b20
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
cmp dword [0x60e5b8], 0
jne 0x585318
push 0x60e5b8
push 0x44b77c
call sub.MSVBVM60.DLL___vbaNew2
mov ebx, dword [0x60e5b8]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVarg
mov eax, dword [ebx]
lea ecx, [ebp - 0x24]
push ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x20]
push ebx
call dword [eax + 0x40]
fnclex
test eax, eax
jge 0x585353
push 0x40
push 0x44c708
push ebx
push eax
call sub.MSVBVM60.DLL___vbaHresultCheckObj
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeObj
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVar
mov edx, 0x463d08
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
cmp dword [0x60e5b8], 0
jne 0x585388
push 0x60e5b8
push 0x44b77c
call sub.MSVBVM60.DLL___vbaNew2
mov ebx, dword [0x60e5b8]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVarg
mov eax, dword [ebx]
lea ecx, [ebp - 0x24]
push ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x20]
push ebx
call dword [eax + 0x40]
fnclex
test eax, eax
jge 0x5853c3
push 0x40
push 0x44c708
push ebx
push eax
call sub.MSVBVM60.DLL___vbaHresultCheckObj
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeObj
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVar
mov edx, 0x463efc
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
cmp dword [0x60e5b8], 0
jne 0x5853f8
push 0x60e5b8
push 0x44b77c
call sub.MSVBVM60.DLL___vbaNew2
mov ebx, dword [0x60e5b8]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVarg
mov eax, dword [ebx]
lea ecx, [ebp - 0x24]
push ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x20]
push ebx
call dword [eax + 0x40]
fnclex
test eax, eax
jge 0x585433
push 0x40
push 0x44c708
push ebx
push eax
call sub.MSVBVM60.DLL___vbaHresultCheckObj
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeObj
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVar
mov edx, 0x4640f4
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrCopy
cmp dword [0x60e5b8], 0
jne 0x585468
push 0x60e5b8
push 0x44b77c
call sub.MSVBVM60.DLL___vbaNew2
mov ebx, dword [0x60e5b8]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVarg
mov eax, dword [ebx]
lea ecx, [ebp - 0x24]
push ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x20]
push ebx
call dword [eax + 0x40]
fnclex
test eax, eax
jge 0x5854a3
push 0x40
push 0x44c708
push ebx
push eax
call sub.MSVBVM60.DLL___vbaHresultCheckObj
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaFreeObj
lea ecx, [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaFreeVar
jmp 0x5854b5
call sub.MSVBVM60.DLL___vbaExitProc
push 0x5854db
jmp 0x5854d2
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
ret